Modifier and Type | Method and Description |
---|---|
static GrammarAST |
Tool.findOptionValueAST(GrammarRootAST root,
String option)
Manually get option node from tree; return null if no defined.
|
Modifier and Type | Method and Description |
---|---|
Grammar |
Tool.loadImportedGrammar(Grammar g,
GrammarAST nameNode)
Try current dir then dir of g then lib dir
|
Modifier and Type | Field and Description |
---|---|
GrammarAST |
LeftRecursiveRuleAnalyzer.retvals |
Modifier and Type | Field and Description |
---|---|
List<Pair<GrammarAST,String>> |
LeftRecursiveRuleAnalyzer.leftRecursiveRuleRefLabels
Pointer to ID node of ^(= ID element)
|
Modifier and Type | Method and Description |
---|---|
GrammarAST |
LeftRecursiveRuleAnalyzer.stripLeftRecursion(GrammarAST altAST) |
Modifier and Type | Method and Description |
---|---|
static boolean |
LeftRecursiveRuleAnalyzer.hasImmediateRecursiveRuleRefs(GrammarAST t,
String ruleName)
Match (RULE RULE_REF (BLOCK (ALT .*) (ALT RULE_REF[self] .*) (ALT .*)))
Match (RULE RULE_REF (BLOCK (ALT .*) (ALT (ASSIGN ID RULE_REF[self]) .*) (ALT .*)))
|
void |
LeftRecursiveRuleAnalyzer.setReturnValues(GrammarAST t) |
void |
LeftRecursiveRuleAnalyzer.stripAltLabel(GrammarAST altAST)
Strip last 2 tokens if → label; alter indexes in altAST
|
GrammarAST |
LeftRecursiveRuleAnalyzer.stripLeftRecursion(GrammarAST altAST) |
String |
LeftRecursiveRuleAnalyzer.text(GrammarAST t) |
Constructor and Description |
---|
LeftRecursiveRuleAnalyzer(GrammarAST ruleAST,
Tool tool,
String ruleName,
String language) |
Modifier and Type | Method and Description |
---|---|
ATNFactory.Handle |
ParserATNFactory._ruleRef(GrammarAST node) |
protected ATNFactory.Handle |
LexerATNFactory.action(GrammarAST node,
LexerAction lexerAction) |
ATNFactory.Handle |
ATNFactory.block(BlockAST blockAST,
GrammarAST ebnfRoot,
List<ATNFactory.Handle> alternativeGrips)
From A|B|..|Z alternative block build
o->o-A->o->o (last ATNState is blockEndATNState pointed to by all alts)
| ^
o->o-B->o--|
| |
...
|
ATNFactory.Handle |
ParserATNFactory.block(BlockAST blkAST,
GrammarAST ebnfRoot,
List<ATNFactory.Handle> alts)
From
A|B|..|Z alternative block build |
static boolean |
ParserATNFactory.blockHasWildcardAlt(GrammarAST block)
(BLOCK (ALT .)) or (BLOCK (ALT 'a') (ALT .)) . |
ATNFactory.Handle |
ATNFactory.charSetLiteral(GrammarAST charSetAST) |
ATNFactory.Handle |
LexerATNFactory.charSetLiteral(GrammarAST charSetAST)
[Aa\t ሴa-z\]\p{Letter}\-] char sets
|
ATNFactory.Handle |
ParserATNFactory.charSetLiteral(GrammarAST charSetAST)
[Aa] char sets not allowed in parser |
protected boolean |
LexerATNFactory.checkRange(GrammarAST leftNode,
GrammarAST rightNode,
int leftValue,
int rightValue) |
protected void |
LexerATNFactory.checkSetCollision(GrammarAST ast,
IntervalSet set,
int el) |
protected void |
LexerATNFactory.checkSetCollision(GrammarAST ast,
IntervalSet set,
int a,
int b) |
ATNFactory.Handle |
ATNFactory.epsilon(GrammarAST node)
From an empty alternative build Grip o-e->o
|
ATNFactory.Handle |
ParserATNFactory.epsilon(GrammarAST node)
From an empty alternative build
o-e->o . |
IntervalSet |
LexerATNFactory.getSetFromCharSetLiteral(GrammarAST charSetAST) |
protected int |
ParserATNFactory.getTokenType(GrammarAST atom) |
ATNFactory.Handle |
ATNFactory.lexerCallCommand(GrammarAST ID,
GrammarAST arg) |
ATNFactory.Handle |
LexerATNFactory.lexerCallCommand(GrammarAST ID,
GrammarAST arg) |
ATNFactory.Handle |
ParserATNFactory.lexerCallCommand(GrammarAST ID,
GrammarAST arg) |
ATNFactory.Handle |
ATNFactory.lexerCommand(GrammarAST ID) |
ATNFactory.Handle |
LexerATNFactory.lexerCommand(GrammarAST ID) |
ATNFactory.Handle |
ParserATNFactory.lexerCommand(GrammarAST ID) |
<T extends ATNState> |
ParserATNFactory.newState(Class<T> nodeType,
GrammarAST node) |
ATNState |
ParserATNFactory.newState(GrammarAST node) |
ATNFactory.Handle |
ATNFactory.optional(GrammarAST optAST,
ATNFactory.Handle blk)
From (A)? build either:
o--A->o
| ^
o---->|
or, if A is a block, just add an empty alt to the end of the block
|
ATNFactory.Handle |
ParserATNFactory.optional(GrammarAST optAST,
ATNFactory.Handle blk)
From
(A)? build either: |
ATNFactory.Handle |
ATNFactory.plus(GrammarAST plusAST,
ATNFactory.Handle blk)
From (A)+ build
|---| (Transition 2 from A.right points at alt 1)
v | (follow of loop is Transition 1)
o->o-A-o->o
Meaning that the last ATNState in A points back to A's left Transition ATNState
and we add a new begin/end ATNState.
|
ATNFactory.Handle |
ParserATNFactory.plus(GrammarAST plusAST,
ATNFactory.Handle blk)
From
(blk)+ build |
ATNFactory.Handle |
ATNFactory.range(GrammarAST a,
GrammarAST b) |
ATNFactory.Handle |
LexerATNFactory.range(GrammarAST a,
GrammarAST b) |
ATNFactory.Handle |
ParserATNFactory.range(GrammarAST a,
GrammarAST b)
Not valid for non-lexers.
|
ATNFactory.Handle |
ATNFactory.rule(GrammarAST ruleAST,
String name,
ATNFactory.Handle blk) |
ATNFactory.Handle |
LexerATNFactory.rule(GrammarAST ruleAST,
String name,
ATNFactory.Handle blk) |
ATNFactory.Handle |
ParserATNFactory.rule(GrammarAST ruleAST,
String name,
ATNFactory.Handle blk) |
ATNFactory.Handle |
ATNFactory.ruleRef(GrammarAST node)
For reference to rule r, build
o-e->(r) o
where (r) is the start of rule r and the trailing o is not linked
to from rule ref state directly (it's done thru the transition(0)
RuleClosureTransition.
|
ATNFactory.Handle |
ParserATNFactory.ruleRef(GrammarAST node)
For reference to rule
r , build |
ATNFactory.Handle |
ATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> alts,
boolean invert) |
ATNFactory.Handle |
LexerATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> alts,
boolean invert) |
ATNFactory.Handle |
ParserATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> terminals,
boolean invert)
From set build single edge graph
o->o-set->o . |
ATNFactory.Handle |
ATNFactory.star(GrammarAST starAST,
ATNFactory.Handle blk)
From (A)* build
|---|
v |
o->o-A-o--o (Transition 2 from block end points at alt 1; follow is Transition 1)
| ^
o---------| (optional branch is 2nd alt of optional block containing A+)
Meaning that the last (end) ATNState in A points back to A's
left side ATNState and we add 3 new ATNStates (the
optional branch is built just like an optional subrule).
|
ATNFactory.Handle |
ParserATNFactory.star(GrammarAST starAST,
ATNFactory.Handle elem)
From
(blk)* build ( blk+ )? with *two* decisions, one for
entry and one for choosing alts of blk . |
ATNFactory.Handle |
ATNFactory.wildcard(GrammarAST associatedAST)
Build an atom with all possible values in its label
|
ATNFactory.Handle |
ParserATNFactory.wildcard(GrammarAST node)
Build an atom with all possible values in its label.
|
Modifier and Type | Method and Description |
---|---|
ATNFactory.Handle |
ATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> alts,
boolean invert) |
ATNFactory.Handle |
LexerATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> alts,
boolean invert) |
ATNFactory.Handle |
ParserATNFactory.set(GrammarAST associatedAST,
List<GrammarAST> terminals,
boolean invert)
From set build single edge graph
o->o-set->o . |
Modifier and Type | Method and Description |
---|---|
List<SrcOp> |
SourceGenTriggers.atom(GrammarAST label,
boolean invert) |
List<? extends SrcOp> |
SourceGenTriggers.block(GrammarAST label,
GrammarAST ebnfRoot) |
List<SrcOp> |
SourceGenTriggers.blockSet(GrammarAST label,
boolean invert) |
void |
ParserFactory.defineImplicitLabel(GrammarAST ast,
LabeledOp op) |
AddToLabelList |
ParserFactory.getAddToListOpIfListLabelPresent(LabeledOp op,
GrammarAST label) |
Choice |
OutputModelController.getChoiceBlock(BlockAST blkAST,
List<CodeBlockForAlt> alts,
GrammarAST label) |
Choice |
BlankOutputModelFactory.getChoiceBlock(BlockAST blkAST,
List<CodeBlockForAlt> alts,
GrammarAST label) |
Choice |
ParserFactory.getChoiceBlock(BlockAST blkAST,
List<CodeBlockForAlt> alts,
GrammarAST labelAST) |
Choice |
OutputModelFactory.getChoiceBlock(BlockAST blkAST,
List<CodeBlockForAlt> alts,
GrammarAST label) |
Choice |
BlankOutputModelFactory.getComplexEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
ParserFactory.getComplexEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
OutputModelFactory.getComplexEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
OutputModelController.getEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
BlankOutputModelFactory.getEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
ParserFactory.getEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
OutputModelFactory.getEBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
BlankOutputModelFactory.getLL1EBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
ParserFactory.getLL1EBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
Choice |
OutputModelFactory.getLL1EBNFBlock(GrammarAST ebnfRoot,
List<CodeBlockForAlt> alts) |
List<SrcOp> |
BlankOutputModelFactory.getLL1Test(IntervalSet look,
GrammarAST blkAST) |
List<SrcOp> |
ParserFactory.getLL1Test(IntervalSet look,
GrammarAST blkAST) |
List<SrcOp> |
OutputModelFactory.getLL1Test(IntervalSet look,
GrammarAST blkAST) |
String |
Target.getLoopCounter(GrammarAST ast) |
String |
Target.getLoopLabel(GrammarAST ast) |
boolean |
Target.grammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
boolean |
CodeGeneratorExtension.needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
boolean |
OutputModelController.needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
boolean |
BlankOutputModelFactory.needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
boolean |
ParserFactory.needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
boolean |
OutputModelFactory.needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
List<SrcOp> |
SourceGenTriggers.range(GrammarAST label) |
List<SrcOp> |
SourceGenTriggers.ruleref(GrammarAST label) |
List<SrcOp> |
OutputModelController.ruleRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
BlankOutputModelFactory.ruleRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
ParserFactory.ruleRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
OutputModelFactory.ruleRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
OutputModelController.set(GrammarAST setAST,
GrammarAST labelAST,
boolean invert)
(A|B|C) possibly with ebnfRoot and label
|
List<SrcOp> |
BlankOutputModelFactory.set(GrammarAST setAST,
GrammarAST label,
boolean invert) |
List<SrcOp> |
ParserFactory.set(GrammarAST setAST,
GrammarAST labelAST,
boolean invert) |
List<SrcOp> |
OutputModelFactory.set(GrammarAST setAST,
GrammarAST label,
boolean invert) |
List<SrcOp> |
OutputModelController.stringRef(GrammarAST ID,
GrammarAST label) |
List<SrcOp> |
BlankOutputModelFactory.stringRef(GrammarAST ID,
GrammarAST label) |
List<SrcOp> |
OutputModelFactory.stringRef(GrammarAST ID,
GrammarAST label) |
List<SrcOp> |
SourceGenTriggers.terminal(GrammarAST label) |
List<SrcOp> |
OutputModelController.tokenRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
BlankOutputModelFactory.tokenRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
List<SrcOp> |
ParserFactory.tokenRef(GrammarAST ID,
GrammarAST labelAST,
GrammarAST args) |
List<SrcOp> |
OutputModelFactory.tokenRef(GrammarAST ID,
GrammarAST label,
GrammarAST args) |
protected abstract boolean |
Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
List<SrcOp> |
OutputModelController.wildcard(GrammarAST ast,
GrammarAST labelAST) |
List<SrcOp> |
BlankOutputModelFactory.wildcard(GrammarAST ast,
GrammarAST labelAST) |
List<SrcOp> |
ParserFactory.wildcard(GrammarAST ast,
GrammarAST labelAST) |
List<SrcOp> |
OutputModelFactory.wildcard(GrammarAST ast,
GrammarAST labelAST) |
Modifier and Type | Field and Description |
---|---|
GrammarAST |
OutputModelObject.ast |
Modifier and Type | Method and Description |
---|---|
protected void |
ElementFrequenciesVisitor.enterBlockSet(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.enterElement(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.enterLexerAlternative(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.enterLexerElement(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitBlockSet(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitElement(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitLexerAlternative(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitLexerElement(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitLexerSubrule(GrammarAST tree) |
protected void |
ElementFrequenciesVisitor.exitSubrule(GrammarAST tree) |
List<Decl> |
RuleFunction.getDeclForAltElement(GrammarAST t,
String refLabelName,
boolean needList,
boolean optional) |
ThrowNoViableAlt |
Choice.getThrowNoViableAlt(OutputModelFactory factory,
GrammarAST blkAST,
IntervalSet expecting) |
void |
ElementFrequenciesVisitor.ruleRef(GrammarAST ref,
ActionAST arg) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PHPTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
Python3Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
Python2Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
JavaScriptTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
JavaTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
CppTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
SwiftTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
GoTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
protected boolean |
CSharpTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
Modifier and Type | Method and Description |
---|---|
static <T extends GrammarAST> |
Utils.nodesToStrings(List<T> nodes) |
Modifier and Type | Field and Description |
---|---|
GrammarAST |
BlockSetTransformer.currentAlt |
GrammarAST |
GrammarTreeVisitor.currentOuterAltRoot |
GrammarAST |
GrammarTreeVisitor.currentRuleAST |
GrammarAST |
GrammarTreeVisitor.prequelConstructs_return.firstOne |
Modifier and Type | Method and Description |
---|---|
GrammarAST |
ANTLRParser.grammarSpec_return.getTree() |
GrammarAST |
ANTLRParser.grammarType_return.getTree() |
GrammarAST |
ANTLRParser.prequelConstruct_return.getTree() |
GrammarAST |
ANTLRParser.optionsSpec_return.getTree() |
GrammarAST |
ANTLRParser.option_return.getTree() |
GrammarAST |
ANTLRParser.optionValue_return.getTree() |
GrammarAST |
ANTLRParser.delegateGrammars_return.getTree() |
GrammarAST |
ANTLRParser.delegateGrammar_return.getTree() |
GrammarAST |
ANTLRParser.tokensSpec_return.getTree() |
GrammarAST |
ANTLRParser.v3tokenSpec_return.getTree() |
GrammarAST |
ANTLRParser.channelsSpec_return.getTree() |
GrammarAST |
ANTLRParser.action_return.getTree() |
GrammarAST |
ANTLRParser.actionScopeName_return.getTree() |
GrammarAST |
ANTLRParser.modeSpec_return.getTree() |
GrammarAST |
ANTLRParser.rules_return.getTree() |
GrammarAST |
ANTLRParser.sync_return.getTree() |
GrammarAST |
ANTLRParser.rule_return.getTree() |
GrammarAST |
ANTLRParser.parserRule_return.getTree() |
GrammarAST |
ANTLRParser.exceptionGroup_return.getTree() |
GrammarAST |
ANTLRParser.exceptionHandler_return.getTree() |
GrammarAST |
ANTLRParser.finallyClause_return.getTree() |
GrammarAST |
ANTLRParser.rulePrequels_return.getTree() |
GrammarAST |
ANTLRParser.rulePrequel_return.getTree() |
GrammarAST |
ANTLRParser.ruleReturns_return.getTree() |
GrammarAST |
ANTLRParser.throwsSpec_return.getTree() |
GrammarAST |
ANTLRParser.localsSpec_return.getTree() |
GrammarAST |
ANTLRParser.ruleAction_return.getTree() |
GrammarAST |
ANTLRParser.ruleBlock_return.getTree() |
GrammarAST |
ANTLRParser.ruleAltList_return.getTree() |
GrammarAST |
ANTLRParser.labeledAlt_return.getTree() |
GrammarAST |
ANTLRParser.lexerRule_return.getTree() |
GrammarAST |
ANTLRParser.lexerRuleBlock_return.getTree() |
GrammarAST |
ANTLRParser.lexerAltList_return.getTree() |
GrammarAST |
ANTLRParser.lexerAlt_return.getTree() |
GrammarAST |
ANTLRParser.lexerElements_return.getTree() |
GrammarAST |
ANTLRParser.lexerElement_return.getTree() |
GrammarAST |
ANTLRParser.labeledLexerElement_return.getTree() |
GrammarAST |
ANTLRParser.lexerBlock_return.getTree() |
GrammarAST |
ANTLRParser.lexerCommands_return.getTree() |
GrammarAST |
ANTLRParser.lexerCommand_return.getTree() |
GrammarAST |
ANTLRParser.lexerCommandExpr_return.getTree() |
GrammarAST |
ANTLRParser.lexerCommandName_return.getTree() |
GrammarAST |
ANTLRParser.altList_return.getTree() |
GrammarAST |
ANTLRParser.alternative_return.getTree() |
GrammarAST |
ANTLRParser.element_return.getTree() |
GrammarAST |
ANTLRParser.actionElement_return.getTree() |
GrammarAST |
ANTLRParser.labeledElement_return.getTree() |
GrammarAST |
ANTLRParser.ebnf_return.getTree() |
GrammarAST |
ANTLRParser.blockSuffix_return.getTree() |
GrammarAST |
ANTLRParser.ebnfSuffix_return.getTree() |
GrammarAST |
ANTLRParser.lexerAtom_return.getTree() |
GrammarAST |
ANTLRParser.atom_return.getTree() |
GrammarAST |
ANTLRParser.wildcard_return.getTree() |
GrammarAST |
ANTLRParser.notSet_return.getTree() |
GrammarAST |
ANTLRParser.blockSet_return.getTree() |
GrammarAST |
ANTLRParser.setElement_return.getTree() |
GrammarAST |
ANTLRParser.block_return.getTree() |
GrammarAST |
ANTLRParser.ruleref_return.getTree() |
GrammarAST |
ANTLRParser.range_return.getTree() |
GrammarAST |
ANTLRParser.terminal_return.getTree() |
GrammarAST |
ANTLRParser.elementOptions_return.getTree() |
GrammarAST |
ANTLRParser.elementOption_return.getTree() |
GrammarAST |
ANTLRParser.id_return.getTree() |
GrammarAST |
ANTLRParser.qid_return.getTree() |
GrammarAST |
ANTLRParser.alternativeEntry_return.getTree() |
GrammarAST |
ANTLRParser.elementEntry_return.getTree() |
GrammarAST |
ANTLRParser.ruleEntry_return.getTree() |
GrammarAST |
ANTLRParser.blockEntry_return.getTree() |
GrammarAST |
BlockSetTransformer.topdown_return.getTree() |
GrammarAST |
BlockSetTransformer.setAlt_return.getTree() |
GrammarAST |
BlockSetTransformer.ebnfBlockSet_return.getTree() |
GrammarAST |
BlockSetTransformer.ebnfSuffix_return.getTree() |
GrammarAST |
BlockSetTransformer.blockSet_return.getTree() |
GrammarAST |
BlockSetTransformer.setElement_return.getTree() |
GrammarAST |
BlockSetTransformer.elementOptions_return.getTree() |
GrammarAST |
BlockSetTransformer.elementOption_return.getTree() |
GrammarAST |
LeftRecursiveRuleWalker.token() |
Modifier and Type | Method and Description |
---|---|
ATNFactory.Handle |
ATNBuilder.block(GrammarAST ebnfRoot) |
void |
GrammarTreeVisitor.blockOption(GrammarAST ID,
GrammarAST valueAST) |
void |
GrammarTreeVisitor.defineChannel(GrammarAST ID) |
void |
GrammarTreeVisitor.defineToken(GrammarAST ID) |
void |
GrammarTreeVisitor.discoverGrammar(GrammarRootAST root,
GrammarAST ID) |
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.discoverRules(GrammarAST rules) |
void |
GrammarTreeVisitor.elementOption(GrammarASTWithOptions t,
GrammarAST ID,
GrammarAST valueAST) |
protected void |
GrammarTreeVisitor.enterAction(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterActionElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterAstOperand(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterAtom(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterBlockSet(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterBlockSuffix(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterChannelSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterChannelsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterDelegateGrammar(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterDelegateGrammars(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterEbnfSuffix(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterElementOption(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterElementOptions(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterExceptionGroup(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterExceptionHandler(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterFinallyClause(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterGrammarSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLabeledElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLabeledLexerElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerAlternative(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerAtom(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerCommand(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerCommandExpr(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerElements(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerRule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerRuleBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLexerSubrule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterLocals(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterMode(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterOption(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterOptionsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterOptionValue(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterPrequelConstruct(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterPrequelConstructs(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRange(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRuleAction(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRuleBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRuleModifier(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRuleref(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRuleReturns(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterRules(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterSetElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterSubrule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterTerminal(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterThrowsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterTokenSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.enterTokensSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitAction(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitActionElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitAstOperand(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitAtom(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitBlockSet(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitBlockSuffix(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitChannelSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitChannelsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitDelegateGrammar(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitDelegateGrammars(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitEbnfSuffix(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitElementOption(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitElementOptions(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitExceptionGroup(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitExceptionHandler(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitFinallyClause(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitGrammarSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLabeledElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLabeledLexerElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerAlternative(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerAtom(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerCommand(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerCommandExpr(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerElements(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerRule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerRuleBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLexerSubrule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitLocals(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitMode(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitOption(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitOptionsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitOptionValue(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitPrequelConstruct(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitPrequelConstructs(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRange(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRuleAction(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRuleBlock(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRuleModifier(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRuleref(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRuleReturns(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitRules(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitSetElement(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitSubrule(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitTerminal(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitThrowsSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitTokenSpec(GrammarAST tree) |
protected void |
GrammarTreeVisitor.exitTokensSpec(GrammarAST tree) |
void |
GrammarTreeVisitor.finishGrammar(GrammarRootAST root,
GrammarAST ID) |
void |
GrammarTreeVisitor.finishLexerRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
void |
GrammarTreeVisitor.finishPrequels(GrammarAST firstPrequel) |
void |
GrammarTreeVisitor.finishRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
void |
GrammarTreeVisitor.finishRules(GrammarAST rule) |
void |
GrammarTreeVisitor.globalNamedAction(GrammarAST scope,
GrammarAST ID,
ActionAST action) |
void |
GrammarTreeVisitor.grammarOption(GrammarAST ID,
GrammarAST valueAST) |
void |
GrammarTreeVisitor.importGrammar(GrammarAST label,
GrammarAST ID) |
void |
GrammarTreeVisitor.label(GrammarAST op,
GrammarAST ID,
GrammarAST element) |
void |
GrammarTreeVisitor.lexerCallCommand(int outerAltNumber,
GrammarAST ID,
GrammarAST arg) |
void |
GrammarTreeVisitor.lexerCommand(int outerAltNumber,
GrammarAST ID) |
void |
GrammarTreeVisitor.modeDef(GrammarAST m,
GrammarAST ID) |
ATNFactory.Handle |
ATNBuilder.ruleBlock(GrammarAST ebnfRoot) |
void |
GrammarTreeVisitor.ruleCatch(GrammarAST arg,
ActionAST action) |
void |
GrammarTreeVisitor.ruleOption(GrammarAST ID,
GrammarAST valueAST) |
void |
GrammarTreeVisitor.ruleRef(GrammarAST ref,
ActionAST arg) |
void |
LeftRecursiveRuleWalker.setReturnValues(GrammarAST t) |
void |
GrammarTreeVisitor.visit(GrammarAST t,
String ruleName) |
void |
GrammarTreeVisitor.visitGrammar(GrammarAST t) |
void |
GrammarTreeVisitor.wildcardRef(GrammarAST ref) |
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.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
Modifier and Type | Field and Description |
---|---|
List<GrammarAST> |
SymbolCollector.channelDefs |
List<GrammarAST> |
SymbolCollector.qualifiedRulerefs |
List<GrammarAST> |
SymbolCollector.rulerefs |
org.stringtemplate.v4.misc.MultiMap<String,GrammarAST> |
RuleCollector.ruleToAltLabels |
List<GrammarAST> |
SymbolCollector.terminals |
List<GrammarAST> |
SymbolCollector.tokenIDRefs |
List<GrammarAST> |
SymbolCollector.tokensDefs |
Modifier and Type | Method and Description |
---|---|
void |
SymbolCollector.blockOption(GrammarAST ID,
GrammarAST valueAST) |
void |
BasicSemanticChecks.blockOption(GrammarAST ID,
GrammarAST valueAST) |
protected void |
BasicSemanticChecks.checkElementIsOuterMostInSingleAlt(GrammarAST tree)
Make sure that action is last element in outer alt; here action,
a2, z, and zz are bad, but a3 is ok:
(RULE A (BLOCK (ALT {action} 'a')))
(RULE B (BLOCK (ALT (BLOCK (ALT {a2} 'x') (ALT 'y')) {a3})))
(RULE C (BLOCK (ALT 'd' {z}) (ALT 'e' {zz})))
|
void |
SymbolChecks.checkForLabelConflict(Rule r,
GrammarAST labelID) |
void |
SymbolCollector.defineChannel(GrammarAST ID) |
void |
BasicSemanticChecks.defineChannel(GrammarAST ID) |
void |
SymbolCollector.defineToken(GrammarAST ID) |
void |
BasicSemanticChecks.defineToken(GrammarAST ID) |
void |
BasicSemanticChecks.discoverGrammar(GrammarRootAST root,
GrammarAST ID) |
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.discoverRules(GrammarAST rules) |
void |
SymbolCollector.elementOption(GrammarASTWithOptions t,
GrammarAST ID,
GrammarAST valueAST) |
void |
BasicSemanticChecks.elementOption(GrammarASTWithOptions elem,
GrammarAST ID,
GrammarAST valueAST) |
protected void |
BasicSemanticChecks.enterChannelsSpec(GrammarAST tree) |
protected void |
BasicSemanticChecks.enterLabeledLexerElement(GrammarAST tree) |
protected void |
BasicSemanticChecks.enterLexerCommand(GrammarAST tree) |
protected void |
BasicSemanticChecks.enterLexerElement(GrammarAST tree) |
protected void |
BasicSemanticChecks.enterMode(GrammarAST tree) |
protected void |
BasicSemanticChecks.enterTerminal(GrammarAST tree) |
protected void |
BasicSemanticChecks.exitLexerRule(GrammarAST tree) |
protected void |
BasicSemanticChecks.exitMode(GrammarAST tree) |
void |
BasicSemanticChecks.finishPrequels(GrammarAST firstPrequel) |
void |
BasicSemanticChecks.finishRule(RuleAST rule,
GrammarAST ID,
GrammarAST block) |
void |
SymbolCollector.globalNamedAction(GrammarAST scope,
GrammarAST ID,
ActionAST action) |
void |
SymbolCollector.grammarOption(GrammarAST ID,
GrammarAST valueAST) |
void |
BasicSemanticChecks.grammarOption(GrammarAST ID,
GrammarAST valueAST) |
void |
BasicSemanticChecks.importGrammar(GrammarAST label,
GrammarAST ID) |
void |
SymbolCollector.label(GrammarAST op,
GrammarAST ID,
GrammarAST element) |
void |
BasicSemanticChecks.label(GrammarAST op,
GrammarAST ID,
GrammarAST element) |
void |
BasicSemanticChecks.modeDef(GrammarAST m,
GrammarAST ID) |
void |
SymbolCollector.process(GrammarAST ast) |
void |
RuleCollector.process(GrammarAST ast) |
void |
SymbolCollector.ruleCatch(GrammarAST arg,
ActionAST action) |
void |
SymbolCollector.ruleOption(GrammarAST ID,
GrammarAST valueAST) |
void |
BasicSemanticChecks.ruleOption(GrammarAST ID,
GrammarAST valueAST) |
void |
SymbolCollector.ruleRef(GrammarAST ref,
ActionAST arg) |
void |
BasicSemanticChecks.ruleRef(GrammarAST ref,
ActionAST arg) |
Modifier and Type | Method and Description |
---|---|
void |
SymbolChecks.checkActionRedefinitions(List<GrammarAST> actions) |
void |
SymbolChecks.checkForQualifiedRuleIssues(Grammar g,
List<GrammarAST> qualifiedRuleRefs) |
void |
SymbolChecks.checkRuleArgs(Grammar g,
List<GrammarAST> rulerefs) |
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 |
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 |
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 |
RuleCollector.discoverRule(RuleAST rule,
GrammarAST ID,
List<GrammarAST> modifiers,
ActionAST arg,
ActionAST returns,
GrammarAST thrws,
GrammarAST options,
ActionAST locals,
List<GrammarAST> actions,
GrammarAST block) |
Modifier and Type | Field and Description |
---|---|
GrammarAST |
AttributeDict.ast |
GrammarAST |
LabelElementPair.element |
GrammarAST |
LabelElementPair.label |
Modifier and Type | Field and Description |
---|---|
List<GrammarAST> |
Rule.exceptions
Track exception handlers; points at "catch" node of (catch exception action)
don't track finally action
|
List<Pair<GrammarAST,String>> |
LeftRecursiveRule.leftRecursiveRuleRefLabels
Did we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)
|
List<GrammarAST> |
Rule.modifiers |
org.stringtemplate.v4.misc.MultiMap<String,GrammarAST> |
Alternative.ruleRefs |
org.stringtemplate.v4.misc.MultiMap<String,GrammarAST> |
Alternative.ruleRefsInActions |
org.stringtemplate.v4.misc.MultiMap<String,GrammarAST> |
Alternative.tokenRefsInActions |
Modifier and Type | Method and Description |
---|---|
GrammarAST |
GrammarTransformPipeline.expandParameterizedLoop(GrammarAST t) |
Modifier and Type | Method and Description |
---|---|
static List<Pair<GrammarAST,GrammarAST>> |
Grammar.getStringLiteralAliasesFromLexerRules(GrammarRootAST ast)
Return list of (TOKEN_NAME node, 'literal' node) pairs
|
static List<Pair<GrammarAST,GrammarAST>> |
Grammar.getStringLiteralAliasesFromLexerRules(GrammarRootAST ast)
Return list of (TOKEN_NAME node, 'literal' node) pairs
|
Modifier and Type | Method and Description |
---|---|
static void |
GrammarTransformPipeline.augmentTokensWithOriginalPosition(Grammar g,
GrammarAST tree) |
protected static boolean |
Grammar.defAlias(GrammarAST r,
String pattern,
org.antlr.runtime.tree.TreeWizard wiz,
List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral) |
void |
Grammar.defineAction(GrammarAST atAST) |
GrammarAST |
GrammarTransformPipeline.expandParameterizedLoop(GrammarAST t) |
void |
GrammarTransformPipeline.expandParameterizedLoops(GrammarAST root)
Find and replace
ID*[','] with ID (',' ID)*
ID+[','] with ID (',' ID)+
(x {action} y)+[','] with x {action} y (',' x {action} y)+
Parameter must be a token.
|
void |
GrammarTransformPipeline.reduceBlocksToSets(GrammarAST root) |
static void |
GrammarTransformPipeline.setGrammarPtr(Grammar g,
GrammarAST tree)
Utility visitor that sets grammar ptr in each node
|
static void |
Grammar.setNodeOptions(GrammarAST node,
GrammarAST options)
Given ^(TOKEN_REF ^(OPTIONS ^(ELEMENT_OPTIONS (= assoc right))))
set option assoc=right in TOKEN_REF.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
Grammar.defAlias(GrammarAST r,
String pattern,
org.antlr.runtime.tree.TreeWizard wiz,
List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral) |
protected static boolean |
Grammar.defAlias(GrammarAST r,
String pattern,
org.antlr.runtime.tree.TreeWizard wiz,
List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral) |
Constructor and Description |
---|
LabelElementPair(Grammar g,
GrammarAST label,
GrammarAST element,
int labelOp) |
Modifier and Type | Class and Description |
---|---|
class |
ActionAST |
class |
AltAST
Any ALT (which can be child of ALT_REWRITE node)
|
class |
BlockAST |
class |
GrammarASTErrorNode
A node representing erroneous token range in token stream
|
class |
GrammarASTWithOptions |
class |
GrammarRootAST |
class |
NotAST |
class |
OptionalBlockAST |
class |
PlusBlockAST |
class |
PredAST |
class |
RangeAST |
class |
RuleAST |
class |
RuleRefAST |
class |
SetAST |
class |
StarBlockAST |
class |
TerminalAST |
Modifier and Type | Field and Description |
---|---|
GrammarAST |
AltAST.altLabel
If someone specified an outermost alternative label with #foo.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,GrammarAST> |
GrammarASTWithOptions.options |
Modifier and Type | Method and Description |
---|---|
GrammarAST |
GrammarAST.dupNode() |
GrammarAST |
GrammarAST.dupTree() |
GrammarAST[] |
GrammarAST.getChildrenAsArray() |
GrammarAST |
GrammarAST.getNodeWithTokenIndex(int index) |
GrammarAST |
GrammarASTWithOptions.getOptionAST(String key)
Gets AST node holding value for option key; ignores default options
and command-line forced options.
|
Modifier and Type | Method and Description |
---|---|
List<GrammarAST> |
GrammarAST.getAllChildrenWithType(int type) |
List<GrammarAST> |
GrammarAST.getNodesWithType(int ttype) |
List<GrammarAST> |
GrammarAST.getNodesWithType(IntervalSet types) |
List<GrammarAST> |
GrammarAST.getNodesWithTypePreorderDFS(IntervalSet types) |
Map<String,GrammarAST> |
GrammarASTWithOptions.getOptions() |
Modifier and Type | Method and Description |
---|---|
void |
GrammarASTWithOptions.setOption(String key,
GrammarAST node) |
Object |
GrammarASTVisitor.visit(GrammarAST node)
This is the generic visitor method that will be invoked
for any other kind of AST node not covered by the other visit methods.
|
Modifier and Type | Method and Description |
---|---|
void |
GrammarAST.getNodesWithTypePreorderDFS_(List<GrammarAST> nodes,
IntervalSet types) |
Constructor and Description |
---|
GrammarAST(GrammarAST node) |
Copyright © 1992–2020 ANTLR. All rights reserved.