| Modifier and Type | Method and Description |
|---|---|
static GrammarAST |
Tool.findOptionValueAST(GrammarRootAST
Manually get option node from tree; return null if no defined.
|
| Modifier and Type | Method and Description |
|---|---|
Grammar |
Tool.loadImportedGrammar(Grammar
Try current dir then dir of g then lib dir
|
| Modifier and Type | Field and Description |
|---|---|
GrammarAST |
LeftRecursiveRuleAnalyzer.retvals
|
| Modifier and Type | Method and Description |
|---|---|
GrammarAST |
LeftRecursiveRuleAnalyzer.stripLeftRecursion(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
LeftRecursiveRuleAnalyzer.hasImmediateRecursiveRuleRefs(GrammarAST
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
|
void |
LeftRecursiveRuleAnalyzer.stripAltLabel(GrammarAST
Strip last 2 tokens if -> label; alter indexes in altAST
|
GrammarAST |
LeftRecursiveRuleAnalyzer.stripLeftRecursion(GrammarAST
|
String |
LeftRecursiveRuleAnalyzer.text(GrammarAST
|
| Constructor and Description | |
|---|---|
LeftRecursiveRuleAnalyzer(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
ATNFactory |
ParserATNFactory._ruleRef(GrammarAST
|
protected ATNFactory |
LexerATNFactory.action(GrammarAST
|
ATNFactory |
ParserATNFactory.block(BlockAST
From
A|B|..|Z alternative block build
|
ATNFactory |
ATNFactory.block(BlockAST
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--| | | ...
|
static boolean |
ParserATNFactory.blockHasWildcardAlt(GrammarAST
(BLOCK (ALT .)) or
(BLOCK (ALT 'a') (ALT .)).
|
ATNFactory |
ParserATNFactory.charSetLiteral(GrammarAST
[Aa] char sets not allowed in parser
|
ATNFactory |
LexerATNFactory.charSetLiteral(GrammarAST
[Aa\t ሴa-z\]\-] char sets
|
ATNFactory |
ATNFactory.charSetLiteral(GrammarAST
|
protected LexerAction |
LexerATNFactory.createLexerAction(GrammarAST
|
ATNFactory |
ParserATNFactory.epsilon(GrammarAST
From an empty alternative build
o-e->o.
|
ATNFactory |
ATNFactory.epsilon(GrammarAST
From an empty alternative build Grip o-e->o
|
IntervalSet |
LexerATNFactory.getSetFromCharSetLiteral(GrammarAST
|
protected int |
ParserATNFactory.getTokenType(GrammarAST
|
ATNFactory |
ParserATNFactory.lexerCallCommand(GrammarAST
|
ATNFactory |
LexerATNFactory.lexerCallCommand(GrammarAST
|
ATNFactory |
ATNFactory.lexerCallCommand(GrammarAST
|
ATNFactory |
ParserATNFactory.lexerCommand(GrammarAST
|
ATNFactory |
LexerATNFactory.lexerCommand(GrammarAST
|
ATNFactory |
ATNFactory.lexerCommand(GrammarAST
|
<T extends ATNState |
ParserATNFactory.newState(Class
|
ATNState |
ParserATNFactory.newState(GrammarAST
|
ATNFactory |
ParserATNFactory.optional(GrammarAST
From
(A)? build either:
|
ATNFactory |
ATNFactory.optional(GrammarAST
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 |
ParserATNFactory.plus(GrammarAST
From
(blk)+ build
|
ATNFactory |
ATNFactory.plus(GrammarAST
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 |
ParserATNFactory.range(GrammarAST
Not valid for non-lexers.
|
ATNFactory |
LexerATNFactory.range(GrammarAST
|
ATNFactory |
ATNFactory.range(GrammarAST
|
ATNFactory |
ParserATNFactory.rule(GrammarAST
|
ATNFactory |
ATNFactory.rule(GrammarAST
|
ATNFactory |
ParserATNFactory.ruleRef(GrammarAST
For reference to rule
r, build
|
ATNFactory |
ATNFactory.ruleRef(GrammarAST
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 |
ParserATNFactory.set(GrammarAST
From set build single edge graph
o->o-set->o.
|
ATNFactory |
LexerATNFactory.set(GrammarAST
|
ATNFactory |
ATNFactory.set(GrammarAST
|
ATNFactory |
ParserATNFactory.star(GrammarAST
From
(blk)* build
( blk+ )? with *two* decisions, one for entry and one for choosing alts of
blk.
|
ATNFactory |
ATNFactory.star(GrammarAST
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 |
ParserATNFactory.wildcard(GrammarAST
Build an atom with all possible values in its label.
|
ATNFactory |
ATNFactory.wildcard(GrammarAST
Build an atom with all possible values in its label
|
| Modifier and Type | Method and Description |
|---|---|
ATNFactory |
ParserATNFactory.set(GrammarAST
From set build single edge graph
o->o-set->o.
|
ATNFactory |
LexerATNFactory.set(GrammarAST
|
ATNFactory |
ATNFactory.set(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
List |
SourceGenTriggers.atom(GrammarAST
|
List |
SourceGenTriggers.block(GrammarAST
|
List |
SourceGenTriggers.blockSet(GrammarAST
|
void |
ParserFactory.defineImplicitLabel(GrammarAST
|
AddToLabelList |
ParserFactory.getAddToListOpIfListLabelPresent(LabeledOp
|
Choice |
BlankOutputModelFactory.getChoiceBlock(BlockAST
|
Choice |
ParserFactory.getChoiceBlock(BlockAST
|
Choice |
OutputModelFactory.getChoiceBlock(BlockAST
|
Choice |
OutputModelController.getChoiceBlock(BlockAST
|
Choice |
BlankOutputModelFactory.getComplexEBNFBlock(GrammarAST
|
Choice |
ParserFactory.getComplexEBNFBlock(GrammarAST
|
Choice |
OutputModelFactory.getComplexEBNFBlock(GrammarAST
|
Choice |
BlankOutputModelFactory.getEBNFBlock(GrammarAST
|
Choice |
ParserFactory.getEBNFBlock(GrammarAST
|
Choice |
OutputModelFactory.getEBNFBlock(GrammarAST
|
Choice |
OutputModelController.getEBNFBlock(GrammarAST
|
Choice |
BlankOutputModelFactory.getLL1EBNFBlock(GrammarAST
|
Choice |
ParserFactory.getLL1EBNFBlock(GrammarAST
|
Choice |
OutputModelFactory.getLL1EBNFBlock(GrammarAST
|
List |
BlankOutputModelFactory.getLL1Test(IntervalSet look, GrammarAST
|
List |
ParserFactory.getLL1Test(IntervalSet look, GrammarAST
|
List |
OutputModelFactory.getLL1Test(IntervalSet look, GrammarAST
|
String |
Target.getLoopCounter(GrammarAST
|
String |
Target.getLoopLabel(GrammarAST
|
boolean |
Target.grammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
boolean |
BlankOutputModelFactory.needsImplicitLabel(GrammarAST
|
boolean |
CodeGeneratorExtension.needsImplicitLabel(GrammarAST
|
boolean |
ParserFactory.needsImplicitLabel(GrammarAST
|
boolean |
OutputModelFactory.needsImplicitLabel(GrammarAST
|
boolean |
OutputModelController.needsImplicitLabel(GrammarAST
|
List |
SourceGenTriggers.range(GrammarAST
|
List |
SourceGenTriggers.ruleref(GrammarAST
|
List |
BlankOutputModelFactory.ruleRef(GrammarAST
|
List |
ParserFactory.ruleRef(GrammarAST
|
List |
OutputModelFactory.ruleRef(GrammarAST
|
List |
OutputModelController.ruleRef(GrammarAST
|
List |
BlankOutputModelFactory.set(GrammarAST
|
List |
ParserFactory.set(GrammarAST
|
List |
OutputModelFactory.set(GrammarAST
|
List |
OutputModelController.set(GrammarAST
(A|B|C) possibly with ebnfRoot and label
|
List |
BlankOutputModelFactory.stringRef(GrammarAST
|
List |
OutputModelFactory.stringRef(GrammarAST
|
List |
OutputModelController.stringRef(GrammarAST
|
List |
SourceGenTriggers.terminal(GrammarAST
|
List |
BlankOutputModelFactory.tokenRef(GrammarAST
|
List |
ParserFactory.tokenRef(GrammarAST
|
List |
OutputModelFactory.tokenRef(GrammarAST
|
List |
OutputModelController.tokenRef(GrammarAST
|
protected abstract boolean |
Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
List |
BlankOutputModelFactory.wildcard(GrammarAST
|
List |
ParserFactory.wildcard(GrammarAST
|
List |
OutputModelFactory.wildcard(GrammarAST
|
List |
OutputModelController.wildcard(GrammarAST
|
| Constructor and Description | |
|---|---|
Wildcard(OutputModelFactory
|
| Modifier and Type | Field and Description |
|---|---|
GrammarAST |
OutputModelObject.ast
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ElementFrequenciesVisitor.enterElement(GrammarAST
|
protected void |
ElementFrequenciesVisitor.enterLexerAlternative(GrammarAST
|
protected void |
ElementFrequenciesVisitor.enterLexerElement(GrammarAST
|
protected void |
ElementFrequenciesVisitor.exitElement(GrammarAST
|
protected void |
ElementFrequenciesVisitor.exitLexerAlternative(GrammarAST
|
protected void |
ElementFrequenciesVisitor.exitLexerElement(GrammarAST
|
protected void |
ElementFrequenciesVisitor.exitLexerSubrule(GrammarAST
|
protected void |
ElementFrequenciesVisitor.exitSubrule(GrammarAST
|
List |
RuleFunction.getDeclForAltElement(GrammarAST
|
ThrowNoViableAlt |
Choice.getThrowNoViableAlt(OutputModelFactory
|
void |
ElementFrequenciesVisitor.ruleRef(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Python3Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
protected boolean |
Python2Target.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
protected boolean |
CSharpTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
protected boolean |
JavaScriptTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
protected boolean |
JavaTarget.visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends GrammarAST |
Utils.nodesToStrings(List
|
| 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 |
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 |
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 |
LeftRecursiveRuleWalker.token()
|
| Modifier and Type | Method and Description |
|---|---|
ATNFactory |
ATNBuilder.block(GrammarAST
|
void |
GrammarTreeVisitor.blockOption(GrammarAST
|
void |
GrammarTreeVisitor.defineChannel(GrammarAST
|
void |
GrammarTreeVisitor.defineToken(GrammarAST
|
void |
GrammarTreeVisitor.discoverGrammar(GrammarRootAST
|
void |
GrammarTreeVisitor.discoverLexerRule(RuleAST
|
void |
GrammarTreeVisitor.discoverRule(RuleAST
|
void |
GrammarTreeVisitor.discoverRules(GrammarAST
|
void |
GrammarTreeVisitor.elementOption(GrammarASTWithOptions
|
protected void |
GrammarTreeVisitor.enterAction(GrammarAST
|
protected void |
GrammarTreeVisitor.enterActionElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterAstOperand(GrammarAST
|
protected void |
GrammarTreeVisitor.enterAtom(GrammarAST
|
protected void |
GrammarTreeVisitor.enterBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.enterBlockSet(GrammarAST
|
protected void |
GrammarTreeVisitor.enterBlockSuffix(GrammarAST
|
protected void |
GrammarTreeVisitor.enterChannelSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterChannelsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterDelegateGrammar(GrammarAST
|
protected void |
GrammarTreeVisitor.enterDelegateGrammars(GrammarAST
|
protected void |
GrammarTreeVisitor.enterEbnfSuffix(GrammarAST
|
protected void |
GrammarTreeVisitor.enterElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterElementOption(GrammarAST
|
protected void |
GrammarTreeVisitor.enterElementOptions(GrammarAST
|
protected void |
GrammarTreeVisitor.enterExceptionGroup(GrammarAST
|
protected void |
GrammarTreeVisitor.enterExceptionHandler(GrammarAST
|
protected void |
GrammarTreeVisitor.enterFinallyClause(GrammarAST
|
protected void |
GrammarTreeVisitor.enterGrammarSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLabeledElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLabeledLexerElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerAlternative(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerAtom(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerCommand(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerCommandExpr(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerElements(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerRule(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerRuleBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLexerSubrule(GrammarAST
|
protected void |
GrammarTreeVisitor.enterLocals(GrammarAST
|
protected void |
GrammarTreeVisitor.enterMode(GrammarAST
|
protected void |
GrammarTreeVisitor.enterOption(GrammarAST
|
protected void |
GrammarTreeVisitor.enterOptionsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterOptionValue(GrammarAST
|
protected void |
GrammarTreeVisitor.enterPrequelConstruct(GrammarAST
|
protected void |
GrammarTreeVisitor.enterPrequelConstructs(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRange(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRule(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRuleAction(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRuleBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRuleModifier(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRuleref(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRuleReturns(GrammarAST
|
protected void |
GrammarTreeVisitor.enterRules(GrammarAST
|
protected void |
GrammarTreeVisitor.enterSetElement(GrammarAST
|
protected void |
GrammarTreeVisitor.enterSubrule(GrammarAST
|
protected void |
GrammarTreeVisitor.enterTerminal(GrammarAST
|
protected void |
GrammarTreeVisitor.enterThrowsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterTokenSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.enterTokensSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitAction(GrammarAST
|
protected void |
GrammarTreeVisitor.exitActionElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitAstOperand(GrammarAST
|
protected void |
GrammarTreeVisitor.exitAtom(GrammarAST
|
protected void |
GrammarTreeVisitor.exitBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.exitBlockSet(GrammarAST
|
protected void |
GrammarTreeVisitor.exitBlockSuffix(GrammarAST
|
protected void |
GrammarTreeVisitor.exitChannelSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitChannelsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitDelegateGrammar(GrammarAST
|
protected void |
GrammarTreeVisitor.exitDelegateGrammars(GrammarAST
|
protected void |
GrammarTreeVisitor.exitEbnfSuffix(GrammarAST
|
protected void |
GrammarTreeVisitor.exitElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitElementOption(GrammarAST
|
protected void |
GrammarTreeVisitor.exitElementOptions(GrammarAST
|
protected void |
GrammarTreeVisitor.exitExceptionGroup(GrammarAST
|
protected void |
GrammarTreeVisitor.exitExceptionHandler(GrammarAST
|
protected void |
GrammarTreeVisitor.exitFinallyClause(GrammarAST
|
protected void |
GrammarTreeVisitor.exitGrammarSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLabeledElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLabeledLexerElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerAlternative(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerAtom(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerCommand(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerCommandExpr(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerElements(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerRule(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerRuleBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLexerSubrule(GrammarAST
|
protected void |
GrammarTreeVisitor.exitLocals(GrammarAST
|
protected void |
GrammarTreeVisitor.exitMode(GrammarAST
|
protected void |
GrammarTreeVisitor.exitOption(GrammarAST
|
protected void |
GrammarTreeVisitor.exitOptionsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitOptionValue(GrammarAST
|
protected void |
GrammarTreeVisitor.exitPrequelConstruct(GrammarAST
|
protected void |
GrammarTreeVisitor.exitPrequelConstructs(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRange(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRule(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRuleAction(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRuleBlock(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRuleModifier(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRuleref(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRuleReturns(GrammarAST
|
protected void |
GrammarTreeVisitor.exitRules(GrammarAST
|
protected void |
GrammarTreeVisitor.exitSetElement(GrammarAST
|
protected void |
GrammarTreeVisitor.exitSubrule(GrammarAST
|
protected void |
GrammarTreeVisitor.exitTerminal(GrammarAST
|
protected void |
GrammarTreeVisitor.exitThrowsSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitTokenSpec(GrammarAST
|
protected void |
GrammarTreeVisitor.exitTokensSpec(GrammarAST
|
void |
GrammarTreeVisitor.finishGrammar(GrammarRootAST
|
void |
GrammarTreeVisitor.finishLexerRule(RuleAST
|
void |
GrammarTreeVisitor.finishPrequels(GrammarAST
|
void |
GrammarTreeVisitor.finishRule(RuleAST
|
void |
GrammarTreeVisitor.finishRules(GrammarAST
|
void |
GrammarTreeVisitor.globalNamedAction(GrammarAST
|
void |
GrammarTreeVisitor.grammarOption(GrammarAST
|
void |
GrammarTreeVisitor.importGrammar(GrammarAST
|
void |
GrammarTreeVisitor.label(GrammarAST
|
void |
GrammarTreeVisitor.lexerCallCommand(int outerAltNumber, GrammarAST
|
void |
GrammarTreeVisitor.lexerCommand(int outerAltNumber, GrammarAST
|
void |
GrammarTreeVisitor.modeDef(GrammarAST
|
ATNFactory |
ATNBuilder.ruleBlock(GrammarAST
|
void |
GrammarTreeVisitor.ruleCatch(GrammarAST
|
void |
GrammarTreeVisitor.ruleOption(GrammarAST
|
void |
GrammarTreeVisitor.ruleRef(GrammarAST
|
void |
LeftRecursiveRuleWalker.setReturnValues(GrammarAST
|
void |
GrammarTreeVisitor.visit(GrammarAST
|
void |
GrammarTreeVisitor.visitGrammar(GrammarAST
|
void |
GrammarTreeVisitor.wildcardRef(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarTreeVisitor.discoverLexerRule(RuleAST
|
void |
GrammarTreeVisitor.discoverRule(RuleAST
|
void |
GrammarTreeVisitor.discoverRule(RuleAST
|
| Modifier and Type | Field and Description |
|---|---|
List |
SymbolCollector.channelDefs
|
List |
SymbolCollector.qualifiedRulerefs
|
List |
SymbolCollector.rulerefs
|
List |
SymbolCollector.terminals
|
List |
SymbolCollector.tokenIDRefs
|
List |
SymbolCollector.tokensDefs
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicSemanticChecks.blockOption(GrammarAST
|
void |
SymbolCollector.blockOption(GrammarAST
|
protected void |
BasicSemanticChecks.checkElementIsOuterMostInSingleAlt(GrammarAST
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
|
void |
BasicSemanticChecks.defineChannel(GrammarAST
|
void |
SymbolCollector.defineChannel(GrammarAST
|
void |
BasicSemanticChecks.defineToken(GrammarAST
|
void |
SymbolCollector.defineToken(GrammarAST
|
void |
BasicSemanticChecks.discoverGrammar(GrammarRootAST
|
void |
RuleCollector.discoverLexerRule(RuleAST
|
void |
BasicSemanticChecks.discoverLexerRule(RuleAST
|
void |
SymbolCollector.discoverLexerRule(RuleAST
|
void |
RuleCollector.discoverRule(RuleAST
|
void |
BasicSemanticChecks.discoverRule(RuleAST
|
void |
SymbolCollector.discoverRule(RuleAST
|
void |
BasicSemanticChecks.discoverRules(GrammarAST
|
void |
BasicSemanticChecks.elementOption(GrammarASTWithOptions
|
void |
SymbolCollector.elementOption(GrammarASTWithOptions
|
protected void |
BasicSemanticChecks.enterChannelsSpec(GrammarAST
|
protected void |
BasicSemanticChecks.enterLabeledLexerElement(GrammarAST
|
protected void |
BasicSemanticChecks.enterLexerCommand(GrammarAST
|
protected void |
BasicSemanticChecks.enterLexerElement(GrammarAST
|
protected void |
BasicSemanticChecks.enterMode(GrammarAST
|
protected void |
BasicSemanticChecks.enterTerminal(GrammarAST
|
protected void |
BasicSemanticChecks.exitLexerRule(GrammarAST
|
protected void |
BasicSemanticChecks.exitMode(GrammarAST
|
void |
BasicSemanticChecks.finishPrequels(GrammarAST
|
void |
BasicSemanticChecks.finishRule(RuleAST
|
void |
SymbolCollector.globalNamedAction(GrammarAST
|
void |
BasicSemanticChecks.grammarOption(GrammarAST
|
void |
SymbolCollector.grammarOption(GrammarAST
|
void |
BasicSemanticChecks.importGrammar(GrammarAST
|
void |
BasicSemanticChecks.label(GrammarAST
|
void |
SymbolCollector.label(GrammarAST
|
void |
BasicSemanticChecks.modeDef(GrammarAST
|
void |
RuleCollector.process(GrammarAST
|
void |
SymbolCollector.process(GrammarAST
|
void |
SymbolCollector.ruleCatch(GrammarAST
|
void |
BasicSemanticChecks.ruleOption(GrammarAST
|
void |
SymbolCollector.ruleOption(GrammarAST
|
void |
BasicSemanticChecks.ruleRef(GrammarAST
|
void |
SymbolCollector.ruleRef(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolChecks.checkActionRedefinitions(List
|
void |
SymbolChecks.checkForQualifiedRuleIssues(Grammar
|
void |
SymbolChecks.checkForTokenConflicts(List
|
void |
SymbolChecks.checkRuleArgs(Grammar
|
void |
RuleCollector.discoverLexerRule(RuleAST
|
void |
BasicSemanticChecks.discoverLexerRule(RuleAST
|
void |
SymbolCollector.discoverLexerRule(RuleAST
|
void |
RuleCollector.discoverRule(RuleAST
|
void |
RuleCollector.discoverRule(RuleAST
|
void |
BasicSemanticChecks.discoverRule(RuleAST
|
void |
BasicSemanticChecks.discoverRule(RuleAST
|
void |
SymbolCollector.discoverRule(RuleAST
|
void |
SymbolCollector.discoverRule(RuleAST
|
| Modifier and Type | Field and Description |
|---|---|
GrammarAST |
AttributeDict.ast
|
GrammarAST |
LabelElementPair.element
|
GrammarAST |
LabelElementPair.label
|
| Modifier and Type | Field and Description |
|---|---|
List |
Rule.exceptions
Track exception handlers; points at "catch" node of (catch exception action) don't track finally action
|
List |
Rule.modifiers
|
| Modifier and Type | Method and Description |
|---|---|
GrammarAST |
GrammarTransformPipeline.expandParameterizedLoop(GrammarAST
|
| Modifier and Type | Method and Description |
|---|---|
static void |
GrammarTransformPipeline.augmentTokensWithOriginalPosition(Grammar
|
protected static boolean |
Grammar.defAlias(GrammarAST
|
void |
Grammar.defineAction(GrammarAST
|
GrammarAST |
GrammarTransformPipeline.expandParameterizedLoop(GrammarAST
|
void |
GrammarTransformPipeline.expandParameterizedLoops(GrammarAST
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
|
static void |
GrammarTransformPipeline.setGrammarPtr(Grammar
Utility visitor that sets grammar ptr in each node
|
static void |
Grammar.setNodeOptions(GrammarAST
Given ^(TOKEN_REF ^(OPTIONS ^(ELEMENT_OPTIONS (= assoc right)))) set option assoc=right in TOKEN_REF.
|
| Constructor and Description | |
|---|---|
LabelElementPair(Grammar
|
| 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 |
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
Gets AST node holding value for option key; ignores default options and command-line forced options.
|
| Modifier and Type | Method and Description |
|---|---|
List |
GrammarAST.getAllChildrenWithType(int type)
|
List |
GrammarAST.getNodesWithType(int ttype)
|
List |
GrammarAST.getNodesWithType(IntervalSet types)
|
List |
GrammarAST.getNodesWithTypePreorderDFS(IntervalSet types)
|
Map |
GrammarASTWithOptions.getOptions()
|
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarASTWithOptions.setOption(String
|
Object |
GrammarASTVisitor.visit(GrammarAST
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
|