Package | Description |
---|---|
org.antlr.v4.analysis | |
org.antlr.v4.parse | |
org.antlr.v4.semantics | |
org.antlr.v4.tool | |
org.antlr.v4.tool.ast |
Modifier and Type | Method and Description |
---|---|
RuleAST |
LeftRecursiveRuleTransformer.parseArtificialRule(Grammar g,
String ruleText) |
Modifier and Type | Method and Description |
---|---|
void |
LeftRecursiveRuleTransformer.setAltASTPointers(LeftRecursiveRule r,
RuleAST t)
(RULE e int _p (returns int v)
(BLOCK
(ALT
(BLOCK
(ALT INT {$v = $INT.int;})
(ALT '(' (= x e) ')' {$v = $x.v;})
(ALT ID))
(* (BLOCK
(OPTIONS ...)
(ALT {7 >= $_p}? '*' (= b e) {$v = $a.v * $b.v;})
(ALT {6 >= $_p}? '+' (= b e) {$v = $a.v + $b.v;})
(ALT {3 >= $_p}? '++') (ALT {2 >= $_p}? '--'))))))
|
Modifier and Type | Method and Description |
---|---|
void |
GrammarTreeVisitor.discoverLexerRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
GrammarAST block) |
void |
GrammarTreeVisitor.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
void |
GrammarTreeVisitor.finishLexerRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
void |
GrammarTreeVisitor.finishRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
Modifier and Type | Method and Description |
---|---|
void |
SymbolCollector.discoverLexerRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
GrammarAST block) |
void |
BasicSemanticChecks.discoverLexerRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
GrammarAST block) |
void |
RuleCollector.discoverLexerRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
GrammarAST block) |
void |
SymbolCollector.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
void |
BasicSemanticChecks.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
void |
RuleCollector.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
void |
BasicSemanticChecks.finishRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
Modifier and Type | Field and Description |
---|---|
RuleAST |
Rule.ast |
RuleAST |
LeftRecursiveRule.originalAST |
Modifier and Type | Method and Description |
---|---|
RuleAST |
LeftRecursiveRule.getOriginalAST() |
Constructor and Description |
---|
LeftRecursiveRule(Grammar g,
String name,
RuleAST ast) |
Rule(Grammar g,
String name,
RuleAST ast,
int numberOfAlts) |
Modifier and Type | Method and Description |
---|---|
RuleAST |
RuleAST.dupNode() |
Modifier and Type | Method and Description |
---|---|
Object |
GrammarASTVisitor.visit(RuleAST node) |
Constructor and Description |
---|
RuleAST(RuleAST node) |
Copyright © 1992–2020 ANTLR. All rights reserved.