Package | Description |
---|---|
org.antlr.v4.tool |
Modifier and Type | Class and Description |
---|---|
class |
GrammarParserInterpreter
A heavier weight
ParserInterpreter that creates parse trees
that track alternative numbers for subtree roots. |
Modifier and Type | Method and Description |
---|---|
ParserInterpreter |
Grammar.createParserInterpreter(TokenStream tokenStream) |
static ParserInterpreter |
GrammarParserInterpreter.deriveTempParserInterpreter(Grammar g,
Parser originalParser,
TokenStream tokens)
Derive a new parser from an old one that has knowledge of the grammar.
|
Modifier and Type | Method and Description |
---|---|
static List<ParserRuleContext> |
GrammarParserInterpreter.getLookaheadParseTrees(Grammar g,
ParserInterpreter originalParser,
TokenStream tokens,
int startRuleIndex,
int decision,
int startIndex,
int stopIndex)
Return a list of parse trees, one for each alternative in a decision
given the same input.
|
Copyright © 1992–2020 ANTLR. All rights reserved.