| Package | Description |
|---|---|
| org.antlr.v4 | |
| org.antlr.v4.analysis | |
| org.antlr.v4.automata | |
| org.antlr.v4.codegen | |
| org.antlr.v4.codegen.model | |
| org.antlr.v4.codegen.model.decl | |
| org.antlr.v4.semantics | |
| org.antlr.v4.tool |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Tool.writeDOTFile(Grammar
|
| Modifier and Type | Field and Description |
|---|---|
List |
LeftRecursionDetector.listOfRecursiveCycles
Holds a list of cycles (sets of rule names).
|
Collection |
LeftRecursiveRuleTransformer.rules
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
LeftRecursionDetector.addRulesToCycle(Rule
enclosingRule calls targetRule.
|
boolean |
LeftRecursionDetector.check(Rule
From state s, look for any transition to a rule that is currently being traced.
|
| Constructor and Description | |
|---|---|
LeftRecursiveRuleTransformer(GrammarRootAST
|
| Modifier and Type | Field and Description |
|---|---|
Rule |
ParserATNFactory.currentRule
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ParserATNFactory._createATN(Collection
|
| Modifier and Type | Method and Description |
|---|---|
void |
OutputModelController.buildLexerRuleActions(Lexer
|
void |
OutputModelController.buildNormalRuleFunction(Rule
|
void |
OutputModelController.buildRuleFunction(Parser
Create RuleFunction per rule and update sempreds,actions of parser output object with stuff found in r.
|
String |
Target.getRuleFunctionContextStructName(Rule
|
RuleFunction |
BlankOutputModelFactory.rule(Rule
|
RuleFunction |
ParserFactory.rule(Rule
|
RuleFunction |
OutputModelFactory.rule(Rule
|
RuleFunction |
OutputModelController.rule(Rule
|
List |
BlankOutputModelFactory.rulePostamble(RuleFunction
|
List |
OutputModelFactory.rulePostamble(RuleFunction
|
List |
OutputModelController.rulePostamble(RuleFunction
|
| Modifier and Type | Field and Description |
|---|---|
Rule |
RuleFunction.rule
|
| Modifier and Type | Field and Description |
|---|---|
LinkedHashMap |
Lexer.actionFuncs
|
Collection |
Recognizer.rules
|
LinkedHashMap |
Recognizer.sempredFuncs
|
| Modifier and Type | Method and Description |
|---|---|
void |
RuleFunction.addContextGetters(OutputModelFactory
|
void |
RuleFunction.fillNamedActions(OutputModelFactory
|
| Constructor and Description | |
|---|---|
RuleActionFunction(OutputModelFactory
|
|
RuleFunction(OutputModelFactory
|
|
RuleSempredFunction(OutputModelFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
StructDecl.addDispatchMethods(Rule
|
void |
AltLabelStructDecl.addDispatchMethods(Rule
|
| Constructor and Description | |
|---|---|
AltLabelStructDecl(OutputModelFactory
|
|
StructDecl(OutputModelFactory
|
| Modifier and Type | Field and Description |
|---|---|
Rule |
SymbolCollector.currentRule
|
Rule |
AttributeChecks.r
|
Rule |
ActionSniffer.r
|
| Modifier and Type | Field and Description |
|---|---|
OrderedHashMap |
RuleCollector.rules
|
| Modifier and Type | Method and Description |
|---|---|
Rule |
AttributeChecks.isolatedRuleRef(String
|
| Modifier and Type | Method and Description |
|---|---|
static Map |
UseDefAnalyzer.getRuleDependencies(Grammar
Find all rules reachable from r directly or indirectly for all r in g
|
static Map |
UseDefAnalyzer.getRuleDependencies(Grammar
Find all rules reachable from r directly or indirectly for all r in g
|
static Map |
UseDefAnalyzer.getRuleDependencies(Grammar
|
static Map |
UseDefAnalyzer.getRuleDependencies(Grammar
|
static Map |
UseDefAnalyzer.getRuleDependencies(LexerGrammar
|
static Map |
UseDefAnalyzer.getRuleDependencies(LexerGrammar
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SymbolChecks.checkDeclarationRuleConflicts(Rule
|
void |
SymbolChecks.checkForAttributeConflicts(Rule
|
void |
SymbolChecks.checkForLabelConflict(Rule
|
protected void |
SymbolChecks.checkLocalConflictingDeclarations(Rule
|
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolChecks.checkForLabelConflicts(Collection
Make sure a label doesn't conflict with another symbol.
|
protected void |
SymbolChecks.checkReservedNames(Collection
|
static Map |
UseDefAnalyzer.getRuleDependencies(Grammar
|
| Constructor and Description | |
|---|---|
ActionSniffer(Grammar
|
|
AttributeChecks(Grammar
|
| Modifier and Type | Class and Description |
|---|---|
class |
LeftRecursiveRule
|
| Modifier and Type | Field and Description |
|---|---|
Rule |
Alternative.rule
|
| Modifier and Type | Field and Description |
|---|---|
List |
Grammar.indexToRule
|
OrderedHashMap |
Grammar.rules
All rules defined in this specific grammar, not imported.
|
| Modifier and Type | Method and Description |
|---|---|
Rule |
Grammar.getRule(int index)
|
Rule |
Grammar.getRule(String
|
Rule |
Grammar.getRule(String
|
Rule |
Alternative.resolveToRule(String
x can be ruleref or rule label.
|
Rule |
Rule.resolveToRule(String
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Grammar.defineRule(Rule
Define the specified rule in the grammar.
|
boolean |
LexerGrammar.defineRule(Rule
|
boolean |
Grammar.undefineRule(Rule
Undefine the specified rule from this
Grammar instance.
|
boolean |
LexerGrammar.undefineRule(Rule
|
| Modifier and Type | Method and Description |
|---|---|
protected static Token |
LeftRecursionCyclesMessage.getStartTokenOfFirstRule(Collection
|
void |
ErrorManager.leftRecursionCycles(String
|
| Constructor and Description | |
|---|---|
Alternative(Rule
|
| Constructor and Description | |
|---|---|
LeftRecursionCyclesMessage(String
|