In addition to creating a parser, Nitra automatically generates ParseTree for the syntax and token rules, which imposes additional requirements on the Nitra rules (SimpleRule
,
TokenRule
,
VoidRule
,
ExtensibleRule
,
ExtensibleTokenRule
), which imposes additional requirements on the Nitra rules. They should not only describe the grammar, but also provide the information for forming ParseTree classes. For each syntax and token rule not marked with the NoParseTree
attribute, an ParseTree node with a name that matches the rule name is created (and converted to the Pascal Case format).
See also
ParseTree fields
SimpleRule
TokenRule
VoidRule
ExtensibleRule
ExtensibleTokenRule