Parser Context
Provides context for parsing operations and manages the Rule invocation stack.
ParserContext is used as a context receiver in Rule.parse and PatternElement.captureAt implementations, providing access to the Token stream and parser state. It maintains a stack of active rule frames to detect and prevent infinite recursion in recursive grammars.
Types
Functions
Link copied to clipboard
Returns a snapshot of the current Rule invocation stack.