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.Handle |
ATNFactory.action(ActionAST action)
Build what amounts to an epsilon transition with an action.
|
ATNFactory.Handle |
LexerATNFactory.action(ActionAST action) |
ATNFactory.Handle |
ParserATNFactory.action(ActionAST action)
Build what amounts to an epsilon transition with an action.
|
Modifier and Type | Method and Description |
---|---|
List<SrcOp> |
OutputModelController.action(ActionAST ast) |
List<SrcOp> |
BlankOutputModelFactory.action(ActionAST ast) |
List<SrcOp> |
ParserFactory.action(ActionAST ast) |
List<SrcOp> |
OutputModelFactory.action(ActionAST ast) |
List<SrcOp> |
OutputModelController.sempred(ActionAST ast) |
List<SrcOp> |
BlankOutputModelFactory.sempred(ActionAST ast) |
List<SrcOp> |
ParserFactory.sempred(ActionAST ast) |
List<SrcOp> |
OutputModelFactory.sempred(ActionAST ast) |
static List<ActionChunk> |
ActionTranslator.translateAction(OutputModelFactory factory,
RuleFunction rf,
org.antlr.runtime.Token tokenWithinAction,
ActionAST node) |
static List<ActionChunk> |
ActionTranslator.translateActionChunk(OutputModelFactory factory,
RuleFunction rf,
String action,
ActionAST node) |
Constructor and Description |
---|
ActionTranslator(OutputModelFactory factory,
ActionAST node) |
Modifier and Type | Method and Description |
---|---|
void |
ElementFrequenciesVisitor.ruleRef(GrammarAST ref,
ActionAST arg) |
Constructor and Description |
---|
Action(OutputModelFactory factory,
ActionAST ast) |
ArgAction(OutputModelFactory factory,
ActionAST ast,
String ctxType) |
ExceptionClause(OutputModelFactory factory,
ActionAST catchArg,
ActionAST catchAction) |
SemPred(OutputModelFactory factory,
ActionAST ast) |
Modifier and Type | Method and Description |
---|---|
static Pair<Integer,Integer> |
ScopeParser._parsePostfixDecl(Attribute attr,
String decl,
ActionAST a,
Grammar g) |
static Pair<Integer,Integer> |
ScopeParser._parsePrefixDecl(Attribute attr,
String decl,
ActionAST a,
Grammar g) |
void |
GrammarTreeVisitor.actionInAlt(ActionAST action) |
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.finallyAction(ActionAST action) |
void |
GrammarTreeVisitor.globalNamedAction(GrammarAST scope,
GrammarAST ID,
ActionAST action) |
static AttributeDict |
ScopeParser.parse(ActionAST action,
String s,
char separator,
Grammar g) |
static Attribute |
ScopeParser.parseAttributeDef(ActionAST action,
Pair<String,Integer> decl,
Grammar g)
For decls like "String foo" or "char *foo32[]" compute the ID
and type declarations.
|
static AttributeDict |
ScopeParser.parseTypedArgList(ActionAST action,
String s,
Grammar g)
Given an arg or retval scope definition list like
|
void |
GrammarTreeVisitor.ruleCatch(GrammarAST arg,
ActionAST action) |
void |
GrammarTreeVisitor.ruleRef(GrammarAST ref,
ActionAST arg) |
Modifier and Type | Field and Description |
---|---|
ActionAST |
AttributeChecks.node |
ActionAST |
ActionSniffer.node |
Modifier and Type | Method and Description |
---|---|
void |
SymbolCollector.actionInAlt(ActionAST action) |
void |
BasicSemanticChecks.actionInAlt(ActionAST action) |
static boolean |
UseDefAnalyzer.actionIsContextDependent(ActionAST actionAST) |
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 |
SymbolCollector.finallyAction(ActionAST action) |
void |
SymbolCollector.globalNamedAction(GrammarAST scope,
GrammarAST ID,
ActionAST action) |
void |
SymbolCollector.ruleCatch(GrammarAST arg,
ActionAST action) |
void |
SymbolCollector.ruleRef(GrammarAST ref,
ActionAST arg) |
void |
BasicSemanticChecks.ruleRef(GrammarAST ref,
ActionAST arg) |
Constructor and Description |
---|
ActionSniffer(Grammar g,
Rule r,
Alternative alt,
ActionAST node,
org.antlr.runtime.Token actionToken) |
AttributeChecks(Grammar g,
Rule r,
Alternative alt,
ActionAST node,
org.antlr.runtime.Token actionToken) |
Modifier and Type | Field and Description |
---|---|
ActionAST |
Rule.finallyAction |
Modifier and Type | Field and Description |
---|---|
List<ActionAST> |
Rule.actions
Track all executable actions other than named actions like @init
and catch/finally (not in an alt).
|
List<ActionAST> |
Alternative.actions
Track all executable actions other than named actions like @init
and catch/finally (not in an alt).
|
LinkedHashMap<ActionAST,Integer> |
Grammar.lexerActions
Tracks all user lexer actions in all alternatives of all rules.
|
Map<String,ActionAST> |
Rule.namedActions
Map a name to an action for this rule like @init {...}.
|
Map<String,ActionAST> |
Grammar.namedActions
Map a name to an action.
|
Modifier and Type | Method and Description |
---|---|
void |
Rule.defineActionInAlt(int currentAlt,
ActionAST actionAST) |
void |
Rule.defineLexerAction(ActionAST actionAST)
Lexer actions are numbered across rules 0..n-1
|
boolean |
Rule.resolvesToAttributeDict(String x,
ActionAST node) |
boolean |
Alternative.resolvesToAttributeDict(String x,
ActionAST node) |
boolean |
AttributeResolver.resolvesToAttributeDict(String x,
ActionAST node) |
boolean |
Grammar.resolvesToAttributeDict(String x,
ActionAST node) |
boolean |
Rule.resolvesToLabel(String x,
ActionAST node) |
boolean |
Alternative.resolvesToLabel(String x,
ActionAST node) |
boolean |
AttributeResolver.resolvesToLabel(String x,
ActionAST node) |
boolean |
Grammar.resolvesToLabel(String x,
ActionAST node) |
boolean |
Rule.resolvesToListLabel(String x,
ActionAST node) |
boolean |
Alternative.resolvesToListLabel(String x,
ActionAST node) |
boolean |
AttributeResolver.resolvesToListLabel(String x,
ActionAST node) |
boolean |
Grammar.resolvesToListLabel(String x,
ActionAST node) |
boolean |
Rule.resolvesToToken(String x,
ActionAST node) |
boolean |
Alternative.resolvesToToken(String x,
ActionAST node) |
boolean |
AttributeResolver.resolvesToToken(String x,
ActionAST node) |
boolean |
Grammar.resolvesToToken(String x,
ActionAST node) |
Attribute |
Rule.resolveToAttribute(String x,
ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
Alternative.resolveToAttribute(String x,
ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop.
|
Attribute |
AttributeResolver.resolveToAttribute(String x,
ActionAST node) |
Attribute |
Grammar.resolveToAttribute(String x,
ActionAST node) |
Attribute |
Rule.resolveToAttribute(String x,
String y,
ActionAST node)
$x.y Attribute: x is surrounding rule, label ref (in any alts)
|
Attribute |
Alternative.resolveToAttribute(String x,
String y,
ActionAST node)
$x.y, x can be surrounding rule, token/rule/label ref.
|
Attribute |
AttributeResolver.resolveToAttribute(String x,
String y,
ActionAST node) |
Attribute |
Grammar.resolveToAttribute(String x,
String y,
ActionAST node) |
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 node) |
Copyright © 1992–2020 ANTLR. All rights reserved.