Package | Description |
---|---|
org.antlr.v4.tool |
Modifier and Type | Class | Description |
---|---|---|
class |
GrammarParserInterpreter |
A heavier weight
ParserInterpreter that creates parse trees
that track alternative numbers for subtree roots. |
Modifier and Type | Method | 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 | 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–2018 ANTLR. All rights reserved.