| Package | Description |
|---|---|
| org.antlr.v4 | |
| 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 |
|---|---|
GrammarRootAST |
Tool.parse(String
|
GrammarRootAST |
Tool.parseGrammar(String
|
GrammarRootAST |
Tool.parseGrammarFromString(String
|
| Modifier and Type | Method and Description |
|---|---|
List |
Tool.sortGrammarByTokenVocab(List
|
| Modifier and Type | Method and Description |
|---|---|
Grammar |
Tool.createGrammar(GrammarRootAST
Given the raw AST of a grammar, create a grammar object associated with the AST.
|
static GrammarAST |
Tool.findOptionValueAST(GrammarRootAST
Manually get option node from tree; return null if no defined.
|
| Modifier and Type | Field and Description |
|---|---|
GrammarRootAST |
LeftRecursiveRuleTransformer.ast
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LeftRecursiveRuleTransformer.translateLeftRecursiveRule(GrammarRootAST
Return true if successful
|
| Constructor and Description | |
|---|---|
LeftRecursiveRuleTransformer(GrammarRootAST
|
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarTreeVisitor.discoverGrammar(GrammarRootAST
|
void |
GrammarTreeVisitor.finishGrammar(GrammarRootAST
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicSemanticChecks.discoverGrammar(GrammarRootAST
|
| Modifier and Type | Field and Description |
|---|---|
GrammarRootAST |
Grammar.ast
|
| Modifier and Type | Method and Description |
|---|---|
GrammarRootAST |
GrammarTransformPipeline.extractImplicitLexer(Grammar
Build lexer grammar from combined grammar that looks like: (COMBINED_GRAMMAR A (tokens { X (= Y 'y')) (OPTIONS (= x 'y')) (@ members {foo}) (@ lexer header {package jj;}) (RULES (RULE .+))) Move rules and actions to new tree, don't dup.
|
| Modifier and Type | Method and Description |
|---|---|
static Map |
Grammar.getStateToGrammarRegionMap(GrammarRootAST
|
static List |
Grammar.getStringLiteralAliasesFromLexerRules(GrammarRootAST
Return list of (TOKEN_NAME node, 'literal' node) pairs
|
| Constructor and Description | |
|---|---|
Grammar(Tool
|
|
LexerGrammar(Tool
|
| Modifier and Type | Method and Description |
|---|---|
GrammarRootAST |
GrammarRootAST.dupNode()
|
| Modifier and Type | Method and Description |
|---|---|
Object |
GrammarASTVisitor.visit(GrammarRootAST
|
| Constructor and Description | |
|---|---|
GrammarRootAST(GrammarRootAST
|