Parser Capture
A mutable container for capturing tokens and nodes during production matching.
ParserCapture tracks tokens and nodes captured by a production during parsing. As elements are captured by patterns, they are added to the capture's children list. Once the production successfully captures its entire pattern, the elements captured are shared for immutable Node production according to the RuleBuilder.produces lambda (or a Generic node if no lambda is specified).
Inheritors
Properties
Returns true if this node is an AlternationCapture.
Returns true if this node is a RepeatableCapture.
The parser stack frames active when this Node was created.
Functions
Executes the block with this node as an AlternationCapture receiver if it is one.
Executes the block with this node as a RepeatableCapture receiver if it is one.
Returns all tokens captured by this Node, and its descendant subnodes, recursively.