Protected
_Protected
allProtected
Readonly
lexerProtected
mainProtected
Readonly
wrapperCurrent state of the unordered groups
Executes a grammar action that modifies the currently active AST node
Performs alternatives parsing (the |
operation in EBNF/Langium)
Parses the callback 1 or more times (the +
operation in EBNF/Langium)
Consumes a specific token type from the token input stream. Requires a unique index within the rule for a specific token type.
Returns the executable rule function for the specified rule name
The rule stack indicates the indices of rules that are currently invoked, in order of their invocation.
Whether the parser is currently actually in use or in "recording mode". Recording mode is activated once when the parser is analyzing itself. During this phase, no input exists and therefore no AST should be constructed
Parses the callback 0 or more times (the *
operation in EBNF/Langium)
Parses the callback as optional (the ?
operation in EBNF/Langium)
Adds a new parser rule to the parser
Invokes the executable function for a given parser rule. Requires a unique index within the rule for a specific sub rule. Arguments can be supplied to the rule invocation for semantic predicates
Base interface for all parsers. Mainly used by the
parser-builder-base.ts
to perform work on different kinds of parsers. The main use cases are: