Uses of Class
org.antlr.v4.tool.ast.GrammarAST
-
-
Uses of GrammarAST in org.antlr.v4
Methods in org.antlr.v4 that return GrammarAST Modifier and Type Method Description static GrammarASTTool. findOptionValueAST(GrammarRootAST root, String option)Manually get option node from tree; return null if no defined.Methods in org.antlr.v4 with parameters of type GrammarAST Modifier and Type Method Description GrammarTool. loadImportedGrammar(Grammar g, GrammarAST nameNode)Try current dir then dir of g then lib dir -
Uses of GrammarAST in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis declared as GrammarAST Modifier and Type Field Description GrammarASTLeftRecursiveRuleAnalyzer. retvalsFields in org.antlr.v4.analysis with type parameters of type GrammarAST Modifier and Type Field Description List<Pair<GrammarAST,String>>LeftRecursiveRuleAnalyzer. leftRecursiveRuleRefLabelsPointer to ID node of ^(= ID element)Methods in org.antlr.v4.analysis that return GrammarAST Modifier and Type Method Description GrammarASTLeftRecursiveRuleAnalyzer. stripLeftRecursion(GrammarAST altAST)Methods in org.antlr.v4.analysis with parameters of type GrammarAST Modifier and Type Method Description static booleanLeftRecursiveRuleAnalyzer. 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 .*)))voidLeftRecursiveRuleAnalyzer. setReturnValues(GrammarAST t)voidLeftRecursiveRuleAnalyzer. stripAltLabel(GrammarAST altAST)Strip last 2 tokens if → label; alter indexes in altASTGrammarASTLeftRecursiveRuleAnalyzer. stripLeftRecursion(GrammarAST altAST)StringLeftRecursiveRuleAnalyzer. text(GrammarAST t)Constructors in org.antlr.v4.analysis with parameters of type GrammarAST Constructor Description LeftRecursiveRuleAnalyzer(GrammarAST ruleAST, Tool tool, String ruleName, String language) -
Uses of GrammarAST in org.antlr.v4.automata
Methods in org.antlr.v4.automata with parameters of type GrammarAST Modifier and Type Method Description ATNFactory.HandleParserATNFactory. _ruleRef(GrammarAST node)protected ATNFactory.HandleLexerATNFactory. action(GrammarAST node, LexerAction lexerAction)ATNFactory.HandleATNFactory. 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.HandleParserATNFactory. block(BlockAST blkAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alts)FromA|B|..|Zalternative block buildstatic booleanParserATNFactory. blockHasWildcardAlt(GrammarAST block)(BLOCK (ALT .))or(BLOCK (ALT 'a') (ALT .)).ATNFactory.HandleATNFactory. charSetLiteral(GrammarAST charSetAST)ATNFactory.HandleLexerATNFactory. charSetLiteral(GrammarAST charSetAST)[Aa\t ሴa-z\]\p{Letter}\-] char setsATNFactory.HandleParserATNFactory. charSetLiteral(GrammarAST charSetAST)[Aa]char sets not allowed in parserprotected booleanLexerATNFactory. checkRange(GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue)ATNFactory.HandleATNFactory. epsilon(GrammarAST node)From an empty alternative build Grip o-e->oATNFactory.HandleParserATNFactory. epsilon(GrammarAST node)From an empty alternative buildo-e->o.IntervalSetLexerATNFactory. getSetFromCharSetLiteral(GrammarAST charSetAST)protected intParserATNFactory. getTokenType(GrammarAST atom)ATNFactory.HandleATNFactory. lexerCallCommand(GrammarAST ID, GrammarAST arg)ATNFactory.HandleLexerATNFactory. lexerCallCommand(GrammarAST ID, GrammarAST arg)ATNFactory.HandleParserATNFactory. lexerCallCommand(GrammarAST ID, GrammarAST arg)ATNFactory.HandleATNFactory. lexerCommand(GrammarAST ID)ATNFactory.HandleLexerATNFactory. lexerCommand(GrammarAST ID)ATNFactory.HandleParserATNFactory. lexerCommand(GrammarAST ID)<T extends ATNState>
TParserATNFactory. newState(Class<T> nodeType, GrammarAST node)ATNStateParserATNFactory. newState(GrammarAST node)ATNFactory.HandleATNFactory. 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 blockATNFactory.HandleParserATNFactory. optional(GrammarAST optAST, ATNFactory.Handle blk)From(A)?build either:ATNFactory.HandleATNFactory. 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.HandleParserATNFactory. plus(GrammarAST plusAST, ATNFactory.Handle blk)From(blk)+buildATNFactory.HandleATNFactory. range(GrammarAST a, GrammarAST b)ATNFactory.HandleLexerATNFactory. range(GrammarAST a, GrammarAST b)ATNFactory.HandleParserATNFactory. range(GrammarAST a, GrammarAST b)Not valid for non-lexers.ATNFactory.HandleATNFactory. rule(GrammarAST ruleAST, String name, ATNFactory.Handle blk)ATNFactory.HandleLexerATNFactory. rule(GrammarAST ruleAST, String name, ATNFactory.Handle blk)ATNFactory.HandleParserATNFactory. rule(GrammarAST ruleAST, String name, ATNFactory.Handle blk)ATNFactory.HandleATNFactory. 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.HandleParserATNFactory. ruleRef(GrammarAST node)For reference to ruler, buildATNFactory.HandleATNFactory. set(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert)ATNFactory.HandleLexerATNFactory. set(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert)ATNFactory.HandleParserATNFactory. set(GrammarAST associatedAST, List<GrammarAST> terminals, boolean invert)From set build single edge grapho->o-set->o.ATNFactory.HandleATNFactory. 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.HandleParserATNFactory. star(GrammarAST starAST, ATNFactory.Handle elem)From(blk)*build( blk+ )?with *two* decisions, one for entry and one for choosing alts ofblk.ATNFactory.HandleATNFactory. wildcard(GrammarAST associatedAST)Build an atom with all possible values in its labelATNFactory.HandleParserATNFactory. wildcard(GrammarAST node)Build an atom with all possible values in its label.Method parameters in org.antlr.v4.automata with type arguments of type GrammarAST Modifier and Type Method Description ATNFactory.HandleATNFactory. set(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert)ATNFactory.HandleLexerATNFactory. set(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert)ATNFactory.HandleParserATNFactory. set(GrammarAST associatedAST, List<GrammarAST> terminals, boolean invert)From set build single edge grapho->o-set->o. -
Uses of GrammarAST in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type GrammarAST Modifier and Type Method 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)voidParserFactory. defineImplicitLabel(GrammarAST ast, LabeledOp op)AddToLabelListParserFactory. getAddToListOpIfListLabelPresent(LabeledOp op, GrammarAST label)ChoiceBlankOutputModelFactory. getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)ChoiceOutputModelController. getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)ChoiceOutputModelFactory. getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)ChoiceParserFactory. getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST labelAST)ChoiceBlankOutputModelFactory. getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceOutputModelFactory. getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceParserFactory. getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceBlankOutputModelFactory. getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceOutputModelController. getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceOutputModelFactory. getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceParserFactory. getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceBlankOutputModelFactory. getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceOutputModelFactory. getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)ChoiceParserFactory. getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)List<SrcOp>BlankOutputModelFactory. getLL1Test(IntervalSet look, GrammarAST blkAST)List<SrcOp>OutputModelFactory. getLL1Test(IntervalSet look, GrammarAST blkAST)List<SrcOp>ParserFactory. getLL1Test(IntervalSet look, GrammarAST blkAST)StringTarget. getLoopCounter(GrammarAST ast)StringTarget. getLoopLabel(GrammarAST ast)booleanTarget. grammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode)booleanBlankOutputModelFactory. needsImplicitLabel(GrammarAST ID, LabeledOp op)booleanCodeGeneratorExtension. needsImplicitLabel(GrammarAST ID, LabeledOp op)booleanOutputModelController. needsImplicitLabel(GrammarAST ID, LabeledOp op)booleanOutputModelFactory. needsImplicitLabel(GrammarAST ID, LabeledOp op)booleanParserFactory. needsImplicitLabel(GrammarAST ID, LabeledOp op)List<SrcOp>SourceGenTriggers. range(GrammarAST label)List<SrcOp>SourceGenTriggers. ruleref(GrammarAST label)List<SrcOp>BlankOutputModelFactory. ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>OutputModelController. ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>OutputModelFactory. ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>ParserFactory. ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>BlankOutputModelFactory. set(GrammarAST setAST, GrammarAST label, boolean invert)List<SrcOp>OutputModelController. set(GrammarAST setAST, GrammarAST labelAST, boolean invert)(A|B|C) possibly with ebnfRoot and labelList<SrcOp>OutputModelFactory. set(GrammarAST setAST, GrammarAST label, boolean invert)List<SrcOp>ParserFactory. set(GrammarAST setAST, GrammarAST labelAST, boolean invert)List<SrcOp>BlankOutputModelFactory. stringRef(GrammarAST ID, GrammarAST label)List<SrcOp>OutputModelController. stringRef(GrammarAST ID, GrammarAST label)List<SrcOp>OutputModelFactory. stringRef(GrammarAST ID, GrammarAST label)List<SrcOp>SourceGenTriggers. terminal(GrammarAST label)List<SrcOp>BlankOutputModelFactory. tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>OutputModelController. tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>OutputModelFactory. tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)List<SrcOp>ParserFactory. tokenRef(GrammarAST ID, GrammarAST labelAST, GrammarAST args)protected booleanTarget. visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode)Deprecated.List<SrcOp>BlankOutputModelFactory. wildcard(GrammarAST ast, GrammarAST labelAST)List<SrcOp>OutputModelController. wildcard(GrammarAST ast, GrammarAST labelAST)List<SrcOp>OutputModelFactory. wildcard(GrammarAST ast, GrammarAST labelAST)List<SrcOp>ParserFactory. wildcard(GrammarAST ast, GrammarAST labelAST) -
Uses of GrammarAST in org.antlr.v4.codegen.model
Fields in org.antlr.v4.codegen.model declared as GrammarAST Modifier and Type Field Description GrammarASTOutputModelObject. astMethods in org.antlr.v4.codegen.model with parameters of type GrammarAST Modifier and Type Method Description protected voidElementFrequenciesVisitor. enterBlockSet(GrammarAST tree)protected voidElementFrequenciesVisitor. enterElement(GrammarAST tree)protected voidElementFrequenciesVisitor. enterLexerAlternative(GrammarAST tree)protected voidElementFrequenciesVisitor. enterLexerElement(GrammarAST tree)protected voidElementFrequenciesVisitor. exitBlockSet(GrammarAST tree)protected voidElementFrequenciesVisitor. exitElement(GrammarAST tree)protected voidElementFrequenciesVisitor. exitLexerAlternative(GrammarAST tree)protected voidElementFrequenciesVisitor. exitLexerElement(GrammarAST tree)protected voidElementFrequenciesVisitor. exitLexerSubrule(GrammarAST tree)protected voidElementFrequenciesVisitor. exitSubrule(GrammarAST tree)List<Decl>RuleFunction. getDeclForAltElement(GrammarAST t, String refLabelName, boolean needList, boolean optional)ThrowNoViableAltChoice. getThrowNoViableAlt(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting)voidElementFrequenciesVisitor. ruleRef(GrammarAST ref, ActionAST arg) -
Uses of GrammarAST in org.antlr.v4.misc
Methods in org.antlr.v4.misc with type parameters of type GrammarAST Modifier and Type Method Description static <T extends GrammarAST>
List<String>Utils. nodesToStrings(List<T> nodes) -
Uses of GrammarAST in org.antlr.v4.parse
Fields in org.antlr.v4.parse declared as GrammarAST Modifier and Type Field Description GrammarASTBlockSetTransformer. currentAltGrammarASTGrammarTreeVisitor. currentOuterAltRootGrammarASTGrammarTreeVisitor. currentRuleASTGrammarASTGrammarTreeVisitor.prequelConstructs_return. firstOneMethods in org.antlr.v4.parse that return GrammarAST Modifier and Type Method Description GrammarASTANTLRParser.action_return. getTree()GrammarASTANTLRParser.actionElement_return. getTree()GrammarASTANTLRParser.actionScopeName_return. getTree()GrammarASTANTLRParser.alternative_return. getTree()GrammarASTANTLRParser.alternativeEntry_return. getTree()GrammarASTANTLRParser.altList_return. getTree()GrammarASTANTLRParser.atom_return. getTree()GrammarASTANTLRParser.block_return. getTree()GrammarASTANTLRParser.blockEntry_return. getTree()GrammarASTANTLRParser.blockSet_return. getTree()GrammarASTANTLRParser.blockSuffix_return. getTree()GrammarASTANTLRParser.channelsSpec_return. getTree()GrammarASTANTLRParser.delegateGrammar_return. getTree()GrammarASTANTLRParser.delegateGrammars_return. getTree()GrammarASTANTLRParser.ebnf_return. getTree()GrammarASTANTLRParser.ebnfSuffix_return. getTree()GrammarASTANTLRParser.element_return. getTree()GrammarASTANTLRParser.elementEntry_return. getTree()GrammarASTANTLRParser.elementOption_return. getTree()GrammarASTANTLRParser.elementOptions_return. getTree()GrammarASTANTLRParser.exceptionGroup_return. getTree()GrammarASTANTLRParser.exceptionHandler_return. getTree()GrammarASTANTLRParser.finallyClause_return. getTree()GrammarASTANTLRParser.grammarSpec_return. getTree()GrammarASTANTLRParser.grammarType_return. getTree()GrammarASTANTLRParser.id_return. getTree()GrammarASTANTLRParser.labeledAlt_return. getTree()GrammarASTANTLRParser.labeledElement_return. getTree()GrammarASTANTLRParser.lexerAlt_return. getTree()GrammarASTANTLRParser.lexerAltList_return. getTree()GrammarASTANTLRParser.lexerAtom_return. getTree()GrammarASTANTLRParser.lexerBlock_return. getTree()GrammarASTANTLRParser.lexerCommand_return. getTree()GrammarASTANTLRParser.lexerCommandExpr_return. getTree()GrammarASTANTLRParser.lexerCommandName_return. getTree()GrammarASTANTLRParser.lexerCommands_return. getTree()GrammarASTANTLRParser.lexerElement_return. getTree()GrammarASTANTLRParser.lexerElements_return. getTree()GrammarASTANTLRParser.lexerRule_return. getTree()GrammarASTANTLRParser.lexerRuleBlock_return. getTree()GrammarASTANTLRParser.localsSpec_return. getTree()GrammarASTANTLRParser.modeSpec_return. getTree()GrammarASTANTLRParser.notSet_return. getTree()GrammarASTANTLRParser.option_return. getTree()GrammarASTANTLRParser.optionsSpec_return. getTree()GrammarASTANTLRParser.optionValue_return. getTree()GrammarASTANTLRParser.parserRule_return. getTree()GrammarASTANTLRParser.prequelConstruct_return. getTree()GrammarASTANTLRParser.qid_return. getTree()GrammarASTANTLRParser.range_return. getTree()GrammarASTANTLRParser.rule_return. getTree()GrammarASTANTLRParser.ruleAction_return. getTree()GrammarASTANTLRParser.ruleAltList_return. getTree()GrammarASTANTLRParser.ruleBlock_return. getTree()GrammarASTANTLRParser.ruleEntry_return. getTree()GrammarASTANTLRParser.rulePrequel_return. getTree()GrammarASTANTLRParser.rulePrequels_return. getTree()GrammarASTANTLRParser.ruleref_return. getTree()GrammarASTANTLRParser.ruleReturns_return. getTree()GrammarASTANTLRParser.rules_return. getTree()GrammarASTANTLRParser.setElement_return. getTree()GrammarASTANTLRParser.sync_return. getTree()GrammarASTANTLRParser.terminal_return. getTree()GrammarASTANTLRParser.throwsSpec_return. getTree()GrammarASTANTLRParser.tokensSpec_return. getTree()GrammarASTANTLRParser.wildcard_return. getTree()GrammarASTBlockSetTransformer.blockSet_return. getTree()GrammarASTBlockSetTransformer.ebnfBlockSet_return. getTree()GrammarASTBlockSetTransformer.ebnfSuffix_return. getTree()GrammarASTBlockSetTransformer.elementOption_return. getTree()GrammarASTBlockSetTransformer.elementOptions_return. getTree()GrammarASTBlockSetTransformer.setAlt_return. getTree()GrammarASTBlockSetTransformer.setElement_return. getTree()GrammarASTBlockSetTransformer.topdown_return. getTree()GrammarASTLeftRecursiveRuleWalker. token()Methods in org.antlr.v4.parse with parameters of type GrammarAST Modifier and Type Method Description ATNFactory.HandleATNBuilder. block(GrammarAST ebnfRoot)voidGrammarTreeVisitor. blockOption(GrammarAST ID, GrammarAST valueAST)voidGrammarTreeVisitor. defineChannel(GrammarAST ID)voidGrammarTreeVisitor. defineToken(GrammarAST ID)voidGrammarTreeVisitor. discoverGrammar(GrammarRootAST root, GrammarAST ID)voidGrammarTreeVisitor. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidGrammarTreeVisitor. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidGrammarTreeVisitor. discoverRules(GrammarAST rules)voidGrammarTreeVisitor. elementOption(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST)protected voidGrammarTreeVisitor. enterAction(GrammarAST tree)protected voidGrammarTreeVisitor. enterActionElement(GrammarAST tree)protected voidGrammarTreeVisitor. enterAstOperand(GrammarAST tree)protected voidGrammarTreeVisitor. enterAtom(GrammarAST tree)protected voidGrammarTreeVisitor. enterBlock(GrammarAST tree)protected voidGrammarTreeVisitor. enterBlockSet(GrammarAST tree)protected voidGrammarTreeVisitor. enterBlockSuffix(GrammarAST tree)protected voidGrammarTreeVisitor. enterChannelSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterChannelsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterDelegateGrammar(GrammarAST tree)protected voidGrammarTreeVisitor. enterDelegateGrammars(GrammarAST tree)protected voidGrammarTreeVisitor. enterEbnfSuffix(GrammarAST tree)protected voidGrammarTreeVisitor. enterElement(GrammarAST tree)protected voidGrammarTreeVisitor. enterElementOption(GrammarAST tree)protected voidGrammarTreeVisitor. enterElementOptions(GrammarAST tree)protected voidGrammarTreeVisitor. enterExceptionGroup(GrammarAST tree)protected voidGrammarTreeVisitor. enterExceptionHandler(GrammarAST tree)protected voidGrammarTreeVisitor. enterFinallyClause(GrammarAST tree)protected voidGrammarTreeVisitor. enterGrammarSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterLabeledElement(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerAlternative(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerAtom(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerBlock(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerCommand(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerCommandExpr(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerElement(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerElements(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerRule(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerRuleBlock(GrammarAST tree)protected voidGrammarTreeVisitor. enterLexerSubrule(GrammarAST tree)protected voidGrammarTreeVisitor. enterLocals(GrammarAST tree)protected voidGrammarTreeVisitor. enterMode(GrammarAST tree)protected voidGrammarTreeVisitor. enterOption(GrammarAST tree)protected voidGrammarTreeVisitor. enterOptionsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterOptionValue(GrammarAST tree)protected voidGrammarTreeVisitor. enterPrequelConstruct(GrammarAST tree)protected voidGrammarTreeVisitor. enterPrequelConstructs(GrammarAST tree)protected voidGrammarTreeVisitor. enterRange(GrammarAST tree)protected voidGrammarTreeVisitor. enterRule(GrammarAST tree)protected voidGrammarTreeVisitor. enterRuleAction(GrammarAST tree)protected voidGrammarTreeVisitor. enterRuleBlock(GrammarAST tree)protected voidGrammarTreeVisitor. enterRuleModifier(GrammarAST tree)protected voidGrammarTreeVisitor. enterRuleref(GrammarAST tree)protected voidGrammarTreeVisitor. enterRuleReturns(GrammarAST tree)protected voidGrammarTreeVisitor. enterRules(GrammarAST tree)protected voidGrammarTreeVisitor. enterSetElement(GrammarAST tree)protected voidGrammarTreeVisitor. enterSubrule(GrammarAST tree)protected voidGrammarTreeVisitor. enterTerminal(GrammarAST tree)protected voidGrammarTreeVisitor. enterThrowsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterTokenSpec(GrammarAST tree)protected voidGrammarTreeVisitor. enterTokensSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitAction(GrammarAST tree)protected voidGrammarTreeVisitor. exitActionElement(GrammarAST tree)protected voidGrammarTreeVisitor. exitAstOperand(GrammarAST tree)protected voidGrammarTreeVisitor. exitAtom(GrammarAST tree)protected voidGrammarTreeVisitor. exitBlock(GrammarAST tree)protected voidGrammarTreeVisitor. exitBlockSet(GrammarAST tree)protected voidGrammarTreeVisitor. exitBlockSuffix(GrammarAST tree)protected voidGrammarTreeVisitor. exitChannelSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitChannelsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitDelegateGrammar(GrammarAST tree)protected voidGrammarTreeVisitor. exitDelegateGrammars(GrammarAST tree)protected voidGrammarTreeVisitor. exitEbnfSuffix(GrammarAST tree)protected voidGrammarTreeVisitor. exitElement(GrammarAST tree)protected voidGrammarTreeVisitor. exitElementOption(GrammarAST tree)protected voidGrammarTreeVisitor. exitElementOptions(GrammarAST tree)protected voidGrammarTreeVisitor. exitExceptionGroup(GrammarAST tree)protected voidGrammarTreeVisitor. exitExceptionHandler(GrammarAST tree)protected voidGrammarTreeVisitor. exitFinallyClause(GrammarAST tree)protected voidGrammarTreeVisitor. exitGrammarSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitLabeledElement(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerAlternative(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerAtom(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerBlock(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerCommand(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerCommandExpr(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerElement(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerElements(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerRule(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerRuleBlock(GrammarAST tree)protected voidGrammarTreeVisitor. exitLexerSubrule(GrammarAST tree)protected voidGrammarTreeVisitor. exitLocals(GrammarAST tree)protected voidGrammarTreeVisitor. exitMode(GrammarAST tree)protected voidGrammarTreeVisitor. exitOption(GrammarAST tree)protected voidGrammarTreeVisitor. exitOptionsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitOptionValue(GrammarAST tree)protected voidGrammarTreeVisitor. exitPrequelConstruct(GrammarAST tree)protected voidGrammarTreeVisitor. exitPrequelConstructs(GrammarAST tree)protected voidGrammarTreeVisitor. exitRange(GrammarAST tree)protected voidGrammarTreeVisitor. exitRule(GrammarAST tree)protected voidGrammarTreeVisitor. exitRuleAction(GrammarAST tree)protected voidGrammarTreeVisitor. exitRuleBlock(GrammarAST tree)protected voidGrammarTreeVisitor. exitRuleModifier(GrammarAST tree)protected voidGrammarTreeVisitor. exitRuleref(GrammarAST tree)protected voidGrammarTreeVisitor. exitRuleReturns(GrammarAST tree)protected voidGrammarTreeVisitor. exitRules(GrammarAST tree)protected voidGrammarTreeVisitor. exitSetElement(GrammarAST tree)protected voidGrammarTreeVisitor. exitSubrule(GrammarAST tree)protected voidGrammarTreeVisitor. exitTerminal(GrammarAST tree)protected voidGrammarTreeVisitor. exitThrowsSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitTokenSpec(GrammarAST tree)protected voidGrammarTreeVisitor. exitTokensSpec(GrammarAST tree)voidGrammarTreeVisitor. finishGrammar(GrammarRootAST root, GrammarAST ID)voidGrammarTreeVisitor. finishLexerRule(RuleAST rule, GrammarAST ID, GrammarAST block)voidGrammarTreeVisitor. finishPrequels(GrammarAST firstPrequel)voidGrammarTreeVisitor. finishRule(RuleAST rule, GrammarAST ID, GrammarAST block)voidGrammarTreeVisitor. finishRules(GrammarAST rule)voidGrammarTreeVisitor. globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action)voidGrammarTreeVisitor. grammarOption(GrammarAST ID, GrammarAST valueAST)voidGrammarTreeVisitor. importGrammar(GrammarAST label, GrammarAST ID)voidGrammarTreeVisitor. label(GrammarAST op, GrammarAST ID, GrammarAST element)voidGrammarTreeVisitor. lexerCallCommand(int outerAltNumber, GrammarAST ID, GrammarAST arg)voidGrammarTreeVisitor. lexerCommand(int outerAltNumber, GrammarAST ID)voidGrammarTreeVisitor. modeDef(GrammarAST m, GrammarAST ID)ATNFactory.HandleATNBuilder. ruleBlock(GrammarAST ebnfRoot)voidGrammarTreeVisitor. ruleCatch(GrammarAST arg, ActionAST action)voidGrammarTreeVisitor. ruleOption(GrammarAST ID, GrammarAST valueAST)voidGrammarTreeVisitor. ruleRef(GrammarAST ref, ActionAST arg)voidLeftRecursiveRuleWalker. setReturnValues(GrammarAST t)voidGrammarTreeVisitor. visit(GrammarAST t, String ruleName)voidGrammarTreeVisitor. visitGrammar(GrammarAST t)voidGrammarTreeVisitor. wildcardRef(GrammarAST ref)Method parameters in org.antlr.v4.parse with type arguments of type GrammarAST Modifier and Type Method Description voidGrammarTreeVisitor. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidGrammarTreeVisitor. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) -
Uses of GrammarAST in org.antlr.v4.semantics
Fields in org.antlr.v4.semantics with type parameters of type GrammarAST Modifier and Type Field Description List<GrammarAST>SymbolCollector. channelDefsList<GrammarAST>SymbolCollector. qualifiedRulerefsList<GrammarAST>SymbolCollector. rulerefsorg.stringtemplate.v4.misc.MultiMap<String,GrammarAST>RuleCollector. ruleToAltLabelsList<GrammarAST>SymbolCollector. terminalsList<GrammarAST>SymbolCollector. tokenIDRefsList<GrammarAST>SymbolCollector. tokensDefsMethods in org.antlr.v4.semantics with parameters of type GrammarAST Modifier and Type Method Description voidBasicSemanticChecks. blockOption(GrammarAST ID, GrammarAST valueAST)voidSymbolCollector. blockOption(GrammarAST ID, GrammarAST valueAST)protected voidBasicSemanticChecks. 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})))voidSymbolChecks. checkForLabelConflict(Rule r, GrammarAST labelID)voidBasicSemanticChecks. defineChannel(GrammarAST ID)voidSymbolCollector. defineChannel(GrammarAST ID)voidBasicSemanticChecks. defineToken(GrammarAST ID)voidSymbolCollector. defineToken(GrammarAST ID)voidBasicSemanticChecks. discoverGrammar(GrammarRootAST root, GrammarAST ID)voidBasicSemanticChecks. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidRuleCollector. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidSymbolCollector. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidBasicSemanticChecks. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidRuleCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidSymbolCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidBasicSemanticChecks. discoverRules(GrammarAST rules)voidBasicSemanticChecks. elementOption(GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST)voidSymbolCollector. elementOption(GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST)protected voidBasicSemanticChecks. enterChannelsSpec(GrammarAST tree)protected voidBasicSemanticChecks. enterLexerCommand(GrammarAST tree)protected voidBasicSemanticChecks. enterLexerElement(GrammarAST tree)protected voidBasicSemanticChecks. enterMode(GrammarAST tree)protected voidBasicSemanticChecks. enterTerminal(GrammarAST tree)protected voidBasicSemanticChecks. exitLexerRule(GrammarAST tree)protected voidBasicSemanticChecks. exitMode(GrammarAST tree)voidBasicSemanticChecks. finishPrequels(GrammarAST firstPrequel)voidBasicSemanticChecks. finishRule(RuleAST rule, GrammarAST ID, GrammarAST block)voidSymbolCollector. globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action)voidBasicSemanticChecks. grammarOption(GrammarAST ID, GrammarAST valueAST)voidRuleCollector. grammarOption(GrammarAST ID, GrammarAST valueAST)voidSymbolCollector. grammarOption(GrammarAST ID, GrammarAST valueAST)voidBasicSemanticChecks. importGrammar(GrammarAST label, GrammarAST ID)voidBasicSemanticChecks. label(GrammarAST op, GrammarAST ID, GrammarAST element)voidSymbolCollector. label(GrammarAST op, GrammarAST ID, GrammarAST element)voidBasicSemanticChecks. modeDef(GrammarAST m, GrammarAST ID)voidRuleCollector. process(GrammarAST ast)voidSymbolCollector. process(GrammarAST ast)voidSymbolCollector. ruleCatch(GrammarAST arg, ActionAST action)voidBasicSemanticChecks. ruleOption(GrammarAST ID, GrammarAST valueAST)voidSymbolCollector. ruleOption(GrammarAST ID, GrammarAST valueAST)voidBasicSemanticChecks. ruleRef(GrammarAST ref, ActionAST arg)voidSymbolCollector. ruleRef(GrammarAST ref, ActionAST arg)Method parameters in org.antlr.v4.semantics with type arguments of type GrammarAST Modifier and Type Method Description voidSymbolChecks. checkActionRedefinitions(List<GrammarAST> actions)voidSymbolChecks. checkForQualifiedRuleIssues(Grammar g, List<GrammarAST> qualifiedRuleRefs)voidSymbolChecks. checkRuleArgs(Grammar g, List<GrammarAST> rulerefs)voidBasicSemanticChecks. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidRuleCollector. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidSymbolCollector. discoverLexerRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, GrammarAST options, GrammarAST block)voidBasicSemanticChecks. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidRuleCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)voidSymbolCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block) -
Uses of GrammarAST in org.antlr.v4.tool
Fields in org.antlr.v4.tool declared as GrammarAST Modifier and Type Field Description GrammarASTAttributeDict. astGrammarASTLabelElementPair. elementGrammarASTLabelElementPair. labelFields in org.antlr.v4.tool with type parameters of type GrammarAST Modifier and Type Field Description List<GrammarAST>Rule. exceptionsTrack exception handlers; points at "catch" node of (catch exception action) don't track finally actionList<Pair<GrammarAST,String>>LeftRecursiveRule. leftRecursiveRuleRefLabelsDid we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)List<GrammarAST>Rule. modifiersorg.stringtemplate.v4.misc.MultiMap<String,GrammarAST>Alternative. ruleRefsorg.stringtemplate.v4.misc.MultiMap<String,GrammarAST>Alternative. ruleRefsInActionsorg.stringtemplate.v4.misc.MultiMap<String,GrammarAST>Alternative. tokenRefsInActionsMethods in org.antlr.v4.tool that return GrammarAST Modifier and Type Method Description GrammarASTGrammarTransformPipeline. expandParameterizedLoop(GrammarAST t)Methods in org.antlr.v4.tool that return types with arguments of type GrammarAST Modifier and Type Method Description static List<Pair<GrammarAST,GrammarAST>>Grammar. getStringLiteralAliasesFromLexerRules(GrammarRootAST ast)Return list of (TOKEN_NAME node, 'literal' node) pairsstatic List<Pair<GrammarAST,GrammarAST>>Grammar. getStringLiteralAliasesFromLexerRules(GrammarRootAST ast)Return list of (TOKEN_NAME node, 'literal' node) pairsMethods in org.antlr.v4.tool with parameters of type GrammarAST Modifier and Type Method Description static voidGrammarTransformPipeline. augmentTokensWithOriginalPosition(Grammar g, GrammarAST tree)protected static booleanGrammar. defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral)voidGrammar. defineAction(GrammarAST atAST)GrammarASTGrammarTransformPipeline. expandParameterizedLoop(GrammarAST t)voidGrammarTransformPipeline. 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.voidGrammarTransformPipeline. reduceBlocksToSets(GrammarAST root)static voidGrammarTransformPipeline. setGrammarPtr(Grammar g, GrammarAST tree)Utility visitor that sets grammar ptr in each nodestatic voidGrammar. setNodeOptions(GrammarAST node, GrammarAST options)Given ^(TOKEN_REF ^(OPTIONS ^(ELEMENT_OPTIONS (= assoc right)))) set option assoc=right in TOKEN_REF.Method parameters in org.antlr.v4.tool with type arguments of type GrammarAST Modifier and Type Method Description protected static booleanGrammar. defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral)protected static booleanGrammar. defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral)Constructors in org.antlr.v4.tool with parameters of type GrammarAST Constructor Description LabelElementPair(Grammar g, GrammarAST label, GrammarAST element, int labelOp) -
Uses of GrammarAST in org.antlr.v4.tool.ast
Subclasses of GrammarAST in org.antlr.v4.tool.ast Modifier and Type Class Description classActionASTclassAltASTAny ALT (which can be child of ALT_REWRITE node)classBlockASTclassGrammarASTErrorNodeA node representing erroneous token range in token streamclassGrammarASTWithOptionsclassGrammarRootASTclassNotASTclassOptionalBlockASTclassPlusBlockASTclassPredASTclassRangeASTclassRuleASTclassRuleRefASTclassSetASTclassStarBlockASTclassTerminalASTFields in org.antlr.v4.tool.ast declared as GrammarAST Modifier and Type Field Description GrammarASTAltAST. altLabelIf someone specified an outermost alternative label with #foo.Fields in org.antlr.v4.tool.ast with type parameters of type GrammarAST Modifier and Type Field Description protected Map<String,GrammarAST>GrammarASTWithOptions. optionsMethods in org.antlr.v4.tool.ast that return GrammarAST Modifier and Type Method Description GrammarASTGrammarAST. dupNode()GrammarASTGrammarAST. dupTree()GrammarAST[]GrammarAST. getChildrenAsArray()GrammarASTGrammarAST. getNodeWithTokenIndex(int index)GrammarASTGrammarASTWithOptions. getOptionAST(String key)Gets AST node holding value for option key; ignores default options and command-line forced options.GrammarASTActionAST. getScope()Methods in org.antlr.v4.tool.ast that return types with arguments of type GrammarAST Modifier and Type Method 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()Methods in org.antlr.v4.tool.ast with parameters of type GrammarAST Modifier and Type Method Description voidGrammarASTWithOptions. setOption(String key, GrammarAST node)voidActionAST. setScope(GrammarAST scope)ObjectGrammarASTVisitor. 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.Method parameters in org.antlr.v4.tool.ast with type arguments of type GrammarAST Modifier and Type Method Description voidGrammarAST. getNodesWithTypePreorderDFS_(List<GrammarAST> nodes, IntervalSet types)Constructors in org.antlr.v4.tool.ast with parameters of type GrammarAST Constructor Description GrammarAST(GrammarAST node)
-