Skip to content

Authoring Design Decisions ‐ RulePad

Sahar Mehrpour edited this page Aug 7, 2024 · 2 revisions
  • When the user makes a change in the Graphical Editor, the Graphical Editor parser modifies the text in the Textual Editor.
  • Alternatively, if the user changes the text in the Textual Editor, the grammar parser parses the text, and using the parse tree, the elements in the Graphical Editor are generated.
  • To create a checkable design rule, the text in the Textual Editor is parsed by the grammar parser and then the parse tree is translated into XPath queries by the XPath generator.
  • The XPath queries along with other information create the design decision.
  • RulePad also provides instant feedback for design rules by checking the rule against the code and extracting snippets from the code.
RulePad

Modifying the grammar

Active Documentation uses ANTLR 4.

  • The grammar is stored in rulePadGrammar.g4.
  • The generated code with ANTLR is created through gradle script.
  • The gradle.build file is located in the root directory of the project.
  • Run
gradle generateParser
  • The generated files will be stored in src/core/generated-parser.
Clone this wiki locally