Experimental
Whether dynamic tokens are enabled for this parser.
Whether any of the alternatives contain a predicate.
The maximum amount of lookahead for this OR
.
The occurrence number of this OR
within its rule.
The rule that contains this OR
.
Builds a lookahead function for optional productions.
A function is able to compute whether to parse the production or to continue with the rest of the parser rule.
Whether dynamic tokens are enabled for this parser.
The maximum amount of lookahead for this production.
The occurrence number of this production within its rule.
The type of this production.
The rule that contains this production.
Builds a lookahead function for optional productions.
A function is able to compute whether to parse the production or to continue with the rest of the parser rule.
Optional
initializeInitializes the lookahead for a grammar.
Note that this method does not build the lookahead functions. It only initializes the internal state of the strategy based on all grammar rules.
Performs validations on the grammar specific to this lookahead strategy. This method is not called if parser validations are disabled.
Generated using TypeDoc
Builds a lookahead function for alternations/
OR
parser methods.Returns
A function that is able to compute which of the alternatives to choose while parsing.