| Package | Description |
|---|---|
| org.antlr.v4.automata | |
| org.antlr.v4.codegen | |
| org.antlr.v4.codegen.model | |
| org.antlr.v4.parse | |
| org.antlr.v4.semantics | |
| org.antlr.v4.tool | |
| org.antlr.v4.tool.ast |
| Modifier and Type | Method and Description |
|---|---|
ATNFactory |
ParserATNFactory.action(ActionAST
Build what amounts to an epsilon transition with an action.
|
ATNFactory |
LexerATNFactory.action(ActionAST
|
ATNFactory |
ATNFactory.action(ActionAST
Build what amounts to an epsilon transition with an action.
|
| Modifier and Type | Method and Description |
|---|---|
List |
BlankOutputModelFactory.action(ActionAST
|
List |
ParserFactory.action(ActionAST
|
List |
OutputModelFactory.action(ActionAST
|
List |
OutputModelController.action(ActionAST
|
List |
BlankOutputModelFactory.sempred(ActionAST
|
List |
ParserFactory.sempred(ActionAST
|
List |
OutputModelFactory.sempred(ActionAST
|
List |
OutputModelController.sempred(ActionAST
|
static List |
ActionTranslator.translateAction(OutputModelFactory
|
static List |
ActionTranslator.translateActionChunk(OutputModelFactory
|
| Constructor and Description | |
|---|---|
ActionTranslator(OutputModelFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
ElementFrequenciesVisitor.ruleRef(GrammarAST
|
| Constructor and Description | |
|---|---|
Action(OutputModelFactory
|
|
ArgAction(OutputModelFactory
|
|
ExceptionClause(OutputModelFactory
|
|
SemPred(OutputModelFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarTreeVisitor.actionInAlt(ActionAST
|
void |
GrammarTreeVisitor.discoverRule(RuleAST
|
void |
GrammarTreeVisitor.finallyAction(ActionAST
|
void |
GrammarTreeVisitor.globalNamedAction(GrammarAST
|
static AttributeDict |
ScopeParser.parse(ActionAST
|
static Attribute |
ScopeParser.parseAttributeDef(ActionAST
For decls like "String foo" or "char *foo32[]" compute the ID and type declarations.
|
static AttributeDict |
ScopeParser.parseTypedArgList(ActionAST
Given an arg or retval scope definition list like Map
|
void |
GrammarTreeVisitor.ruleCatch(GrammarAST
|
void |
GrammarTreeVisitor.ruleRef(GrammarAST
|
| Modifier and Type | Field and Description |
|---|---|
ActionAST |
AttributeChecks.node
|
ActionAST |
ActionSniffer.node
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicSemanticChecks.actionInAlt(ActionAST
|
void |
SymbolCollector.actionInAlt(ActionAST
|
static boolean |
UseDefAnalyzer.actionIsContextDependent(ActionAST
|
void |
RuleCollector.discoverRule(RuleAST
|
void |
BasicSemanticChecks.discoverRule(RuleAST
|
void |
SymbolCollector.discoverRule(RuleAST
|
void |
SymbolCollector.finallyAction(ActionAST
|
void |
SymbolCollector.globalNamedAction(GrammarAST
|
void |
SymbolCollector.ruleCatch(GrammarAST
|
void |
BasicSemanticChecks.ruleRef(GrammarAST
|
void |
SymbolCollector.ruleRef(GrammarAST
|
| Constructor and Description | |
|---|---|
ActionSniffer(Grammar
|
|
AttributeChecks(Grammar
|
| Modifier and Type | Field and Description |
|---|---|
ActionAST |
Rule.finallyAction
|
| Modifier and Type | Field and Description |
|---|---|
List |
Alternative.actions
Track all executable actions other than named actions like @init and catch/finally (not in an alt).
|
List |
Rule.actions
Track all executable actions other than named actions like @init and catch/finally (not in an alt).
|
LinkedHashMap |
Grammar.lexerActions
Tracks all user lexer actions in all alternatives of all rules.
|
Map |
Rule.namedActions
Map a name to an action for this rule like @init {...}.
|
Map |
Grammar.namedActions
Map a name to an action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Rule.defineActionInAlt(int currentAlt, ActionAST
|
void |
Rule.defineLexerAction(ActionAST
Lexer actions are numbered across rules 0..n-1
|
boolean |
AttributeResolver.resolvesToAttributeDict(String
|
boolean |
Alternative.resolvesToAttributeDict(String
|
boolean |
Rule.resolvesToAttributeDict(String
|
boolean |
Grammar.resolvesToAttributeDict(String
|
boolean |
AttributeResolver.resolvesToLabel(String
|
boolean |
Alternative.resolvesToLabel(String
|
boolean |
Rule.resolvesToLabel(String
|
boolean |
Grammar.resolvesToLabel(String
|
boolean |
AttributeResolver.resolvesToListLabel(String
|
boolean |
Alternative.resolvesToListLabel(String
|
boolean |
Rule.resolvesToListLabel(String
|
boolean |
Grammar.resolvesToListLabel(String
|
boolean |
AttributeResolver.resolvesToToken(String
|
boolean |
Alternative.resolvesToToken(String
|
boolean |
Rule.resolvesToToken(String
|
boolean |
Grammar.resolvesToToken(String
|
Attribute |
AttributeResolver.resolveToAttribute(String
|
Attribute |
Alternative.resolveToAttribute(String
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
Rule.resolveToAttribute(String
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
Grammar.resolveToAttribute(String
|
Attribute |
AttributeResolver.resolveToAttribute(String
|
Attribute |
Alternative.resolveToAttribute(String
$x.y, x can be surrounding rule, token/rule/label ref.
|
Attribute |
Rule.resolveToAttribute(String
$x.y Attribute: x is surrounding rule, label ref (in any alts)
|
Attribute |
Grammar.resolveToAttribute(String
|
| Modifier and Type | Class and Description |
|---|---|
class |
PredAST
|
| Modifier and Type | Method and Description |
|---|---|
ActionAST |
ActionAST.dupNode()
|
ActionAST |
RuleAST.getLexerAction()
|
| Constructor and Description | |
|---|---|
ActionAST(ActionAST
|