Generic
A generic Node implementation that can hold arbitrary children.
Generic Nodes are useful when you don't need custom Node types for specific Grammar constructs. They simply store the captured children without additional semantic data.
Generic Nodes are used by the no-argument produces function which does not supply a custom production lambda.
Properties
Link copied to clipboard
Returns true if this node is an AlternationCapture.
Link copied to clipboard
Returns true if this node is a RepeatableCapture.
Link copied to clipboard
The parser stack frames active when this Node was created.
Functions
Link copied to clipboard
Executes the block with this node as an AlternationCapture receiver if it is one.
Link copied to clipboard
Executes the block with this node as a RepeatableCapture receiver if it is one.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns all tokens captured by this Node, and its descendant subnodes, recursively.