a Typescript Enum with one symbol for each nonterminal used in the grammar, matching the nonterminals when compared case-insensitively (so ROOT and Root and root are the same).
ReadonlyallGet all of this node's children, including
ReadonlychildrenGet this node's children.
ReadonlyendGet the offset where this subtree ends in the entire parsed string.
ReadonlyisTest if this node is in a subtree that was @skipped.
ReadonlynameGet this node's name.
ReadonlystartGet the offset where this subtree starts in the entire parsed string.
ReadonlytextGet this subtree's text.
Represents an immutable parse tree.
Each node represents the application of a production rule from the grammar,
name ::= expr.The node's name() is the nonterminal on the left side of the production rule, and the node's children() are the production rules that were matched for each nonterminal used in the righthand side (expr).
A node also has text() representing the substring matched by this node's subtree, and start()/end() indicating where that substring is relative to the entire string parsed.
If the grammar used
@skipto skip over some nonterminals automatically, then the skipped subtrees do not appear among this node's children(), but can be found by using allChildren() or childrenByName().