In addition to the properties defined above, within a given semantics, every node also has a method/property corresponding to each operation/attribute in the semantics. For example, in a semantics that has an operation named 'prettyPrint' and an attribute named 'freeVars', every node has a prettyPrint() method and a freeVars property. NOTE this means the above node properties can not be used as operation/attribute names.
An array containing the node's children.
The name of grammar rule that created the node.
The number of child nodes that the node has.
Captures the portion of the input that was consumed by the node.
Returns the contents of the input stream consumed by this node.
A built-in operation which can convert certain NonterminalNodes into IterationNodes. This operation is defined for the built-in list rules (ListOf, EmptyListOf, NonemptyListOf, listOf, ...), and can also be defined for user-defined rules.
Generated using TypeDoc
A node in the parse tree, passed to Action functions.