Child pages
  • RuleAlias
Skip to end of metadata
Go to start of metadata

RuleAlias allows you to create an alias for a rule. The alias:

  1. inserts its content in-place without creating a new rule
  2. defines a field name in the location of the substitution

In this example, the alias Name is created for the Identifier rule. Now, should this alias be called somewhere in the grammar:

Name will be substituted with the Identifier rule invocation. However the field created in the materialized AST will be called Name.

See also

Name
RuleExpression

  • No labels