Uses of Class
org.antlr.tool.Grammar
Packages that use Grammar
Package
Description
-
Uses of Grammar in org.antlr
Modifier and TypeMethodDescriptionTool.getRootGrammar(String grammarFileName) Get a grammar mentioned on the command-line and any delegatesModifier and TypeMethodDescriptionvoidTool.generateDFAs(Grammar g) protected voidTool.generateNFAs(Grammar g) protected voidTool.generateRecognizer(Grammar grammar) Create NFA, DFA and generate code for grammar.Tool.getOutputFile(Grammar g, String fileName) This method is used by all code generators to create new output files.protected voidTool.writeDOTFile(Grammar g, String name, String dot) protected voidTool.writeDOTFile(Grammar g, Rule r, String dot) -
Uses of Grammar in org.antlr.analysis
Fields in org.antlr.analysis declared as GrammarModifier and TypeFieldDescriptionprotected GrammarDFAOptimizer.grammarLL1Analyzer.grammarNFA.grammarThis NFA represents which grammar?(package private) GrammarNFAConversionThread.grammarMethods in org.antlr.analysis with parameters of type GrammarModifier and TypeMethodDescriptionMachineProbe.getInputSequenceDisplay(Grammar g, List<IntSet> labels) Given List<IntSet>, return a String with a useful representation of the associated input string.voidSemanticContext.CommutativePredicate.trackUseOfSyntacticPredicates(Grammar g) voidSemanticContext.NOT.trackUseOfSyntacticPredicates(Grammar g) voidSemanticContext.Predicate.trackUseOfSyntacticPredicates(Grammar g) voidSemanticContext.trackUseOfSyntacticPredicates(Grammar g) Notify the indicated grammar of any syn preds used within this contextConstructors in org.antlr.analysis with parameters of type GrammarModifierConstructorDescriptionDFAOptimizer(Grammar grammar) LL1Analyzer(Grammar grammar) NFAConversionThread(Grammar grammar, Barrier barrier, int i, int j) -
Uses of Grammar in org.antlr.codegen
Fields in org.antlr.codegen declared as GrammarModifier and TypeFieldDescriptionCodeGenerator.grammarWhich grammar are we generating code for? Each generator is attached to a specific grammar.Methods in org.antlr.codegen with parameters of type GrammarModifier and TypeMethodDescriptionprotected org.stringtemplate.v4.STActionScriptTarget.chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST) protected org.stringtemplate.v4.STCppTarget.chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST) protected org.stringtemplate.v4.STCTarget.chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST) protected org.stringtemplate.v4.STDelphiTarget.chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST) protected org.stringtemplate.v4.STJavaTarget.chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST) protected voidCppTarget.genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) protected voidCSharp3Target.genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) protected voidCTarget.genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) protected voidRubyTarget.genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) protected voidTarget.genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) protected voidCppTarget.genRecognizerHeaderFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST headerFileST, String extName) protected voidCTarget.genRecognizerHeaderFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST headerFileST, String extName) protected voidObjCTarget.genRecognizerHeaderFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST headerFileST, String extName) protected voidTarget.genRecognizerHeaderFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST headerFileST, String extName) protected voidCppTarget.performGrammarAnalysis(CodeGenerator generator, Grammar grammar) Overrides the standard grammar analysis so we can prepare the analyser a little differently from the other targets.protected voidCTarget.performGrammarAnalysis(CodeGenerator generator, Grammar grammar) Overrides the standard grammar analysis so we can prepare the analyser a little differently from the other targets.protected voidJavaTarget.performGrammarAnalysis(CodeGenerator generator, Grammar grammar) protected voidTarget.performGrammarAnalysis(CodeGenerator generator, Grammar grammar) Constructors in org.antlr.codegen with parameters of type Grammar -
Uses of Grammar in org.antlr.grammar.v3
Fields in org.antlr.grammar.v3 declared as GrammarModifier and TypeFieldDescription(package private) GrammarActionAnalysis.grammar(package private) GrammarActionTranslator.grammarprivate GrammarANTLRParser.grammarprotected GrammarANTLRTreePrinter.grammarprotected GrammarAssignTokenTypesWalker.grammarprotected GrammarCodeGenTreeWalker.grammarprotected GrammarDefineGrammarItemsWalker.grammarprotected GrammarLeftRecursiveRuleWalker.grammarprotected GrammarTreeToNFAConverter.grammarWhich grammar are we converting an NFA for?Methods in org.antlr.grammar.v3 that return GrammarMethods in org.antlr.grammar.v3 with parameters of type GrammarModifier and TypeMethodDescriptionprotected voidAssignTokenTypesWalker.aliasTokenIDsAndLiterals(Grammar root) protected voidAssignTokenTypesWalker.assignStringTypes(Grammar root) protected voidAssignTokenTypesWalker.assignTokenIDTypes(Grammar root) protected voidAssignTokenTypesWalker.defineTokenNamesAndLiteralsInGrammar(Grammar root) voidAssignTokenTypesWalker.defineTokens(Grammar root) final voidfinal voidCodeGenTreeWalker.grammar_(Grammar g, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST outputFileST, org.stringtemplate.v4.ST headerFileST) protected voidfinal voidfinal booleanvoidANTLRParser.setGrammar(Grammar value) final StringConstructors in org.antlr.grammar.v3 with parameters of type GrammarModifierConstructorDescriptionActionAnalysis(Grammar grammar, String ruleName, GrammarAST actionAST) TreeToNFAConverter(org.antlr.runtime.tree.TreeNodeStream input, Grammar g, NFA nfa, NFAFactory factory) -
Uses of Grammar in org.antlr.misc
Methods in org.antlr.misc with parameters of type Grammar -
Uses of Grammar in org.antlr.tool
Fields in org.antlr.tool declared as GrammarModifier and TypeFieldDescriptionGrammarSemanticsMessage.gprotected GrammarGrammarSerializerFoo.gGrammarSyntaxMessage.g(package private) GrammarInterpreter.LexerActionGetTokenType.gLeftRecursiveRuleAnalyzer.gAttributeScope.grammarprotected GrammarBuildDependencyGenerator.grammarCompositeGrammarTree.grammarprotected GrammarDOTGenerator.grammarprotected GrammarFASerializer.grammarGrammar.Decision.grammarGrammarReport.grammarprotected GrammarGrammarSanity.grammarprotected GrammarInterpreter.grammarprotected GrammarNameSpaceChecker.grammarRule.grammarTo which grammar does this belong?GrammarReport2.rootMethods in org.antlr.tool that return GrammarModifier and TypeMethodDescriptionCompositeGrammar.getDelegator(Grammar g) Get parent of this grammarGrammar.getDelegator()Who's my direct parent grammar?CompositeGrammar.getGrammar(String grammarName) CompositeGrammar.getRootGrammar()Methods in org.antlr.tool that return types with arguments of type GrammarModifier and TypeMethodDescriptionCompositeGrammar.getDelegates(Grammar g) Get list of all delegates from all grammars in the delegate subtree of g.Grammar.getDelegates()Get list of all delegates from all grammars directly or indirectly imported into this grammar.CompositeGrammar.getDelegators(Grammar g) Return list of delegate grammars from root down to g.Grammar.getDelegators()Get list of all delegators.CompositeGrammar.getDirectDelegates(Grammar g) Grammar.getDirectDelegates()CompositeGrammar.getIndirectDelegates(Grammar g) Get delegates below direct delegates of gGrammar.getIndirectDelegates()Get delegates below direct delegatesCompositeGrammarTree.getPostOrderedGrammarList()Return a postorder list of grammars; root is last in listCompositeGrammarTree.getPreOrderedGrammarList()Return a preorder list of grammars; root is first in listMethods in org.antlr.tool with parameters of type GrammarModifier and TypeMethodDescriptionprotected voidGrammar.addDelegateGrammar(Grammar delegateGrammar) add new delegate to composite treevoidCompositeGrammar.addGrammar(Grammar delegator, Grammar delegate) Add delegate grammar as child of delegatorprotected voidAssignTokenTypesBehavior.aliasTokenIDsAndLiterals(Grammar root) protected voidAssignTokenTypesBehavior.assignStringTypes(Grammar root) protected voidAssignTokenTypesBehavior.assignTokenIDTypes(Grammar root) protected voidAssignTokenTypesBehavior.defineTokenNamesAndLiteralsInGrammar(Grammar root) voidAssignTokenTypesBehavior.defineTokens(Grammar root) CompositeGrammar.getAllImportedRules(Grammar g) Get all rule definitions from all direct/indirect delegate grammars of g.CompositeGrammar.getDelegatedRules(Grammar g) Get set of rules for grammar g that need to have manual delegation methods.CompositeGrammar.getDelegates(Grammar g) Get list of all delegates from all grammars in the delegate subtree of g.CompositeGrammar.getDelegator(Grammar g) Get parent of this grammarCompositeGrammar.getDelegators(Grammar g) Return list of delegate grammars from root down to g.CompositeGrammar.getDirectDelegates(Grammar g) CompositeGrammar.getIndirectDelegates(Grammar g) Get delegates below direct delegates of gstatic GrammarReport.ReportDataGrammarReport.getReportData(Grammar g) static voidErrorManager.grammarError(int msgID, Grammar g, org.antlr.runtime.Token token) static voidErrorManager.grammarError(int msgID, Grammar g, org.antlr.runtime.Token token, Object arg) static voidErrorManager.grammarError(int msgID, Grammar g, org.antlr.runtime.Token token, Object arg, Object arg2) static voidErrorManager.grammarWarning(int msgID, Grammar g, org.antlr.runtime.Token token) static voidErrorManager.grammarWarning(int msgID, Grammar g, org.antlr.runtime.Token token, Object arg) static voidErrorManager.grammarWarning(int msgID, Grammar g, org.antlr.runtime.Token token, Object arg, Object arg2) intGrammar.importTokenVocabulary(Grammar importFromGr) Pull your token definitions from an existing grammar in memory.protected voidprotected static voidRandomPhrase.randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule) an experimental method to generate random phrases for a given grammar given a start rule.GrammarAST.setBlockOption(Grammar grammar, String key, Object value) Save the option key/value pair and process it; return the key or null if invalid option.voidCompositeGrammar.setDelegationRoot(Grammar root) GrammarAST.setOption(Map<String, Object> options, Set<String> legalOptions, Grammar grammar, String key, Object value) voidGrammarAST.setOptions(Grammar grammar, Map<String, Object> options) GrammarAST.setTerminalOption(Grammar grammar, String key, Object value) (package private) voidGrammarReport2.stats(Grammar g, StringBuilder buf) static voidErrorManager.syntaxError(int msgID, Grammar grammar, org.antlr.runtime.Token token, Object arg, org.antlr.runtime.RecognitionException re) booleanGrammar.validImport(Grammar delegate) Many imports are illegal such as lexer into a tree grammarMethod parameters in org.antlr.tool with type arguments of type GrammarModifier and TypeMethodDescriptionprotected voidCompositeGrammarTree._getPostOrderedGrammarList(List<Grammar> grammars) work for getPostOrderedGrammarListprotected voidCompositeGrammarTree._getPreOrderedGrammarList(List<Grammar> grammars) Constructors in org.antlr.tool with parameters of type GrammarModifierConstructorDescriptionAttributeScope(Grammar grammar, String name, org.antlr.runtime.Token derivedFromToken) DOTGenerator(Grammar grammar) This aspect is associated with a grammarFASerializer(Grammar grammar) This aspect is associated with a grammar; used to get token namesGrammarReport(Grammar grammar) GrammarReport2(Grammar rootGrammar) GrammarSanity(Grammar grammar) GrammarSemanticsMessage(int msgID, Grammar g, org.antlr.runtime.Token offendingToken) GrammarSemanticsMessage(int msgID, Grammar g, org.antlr.runtime.Token offendingToken, Object arg) GrammarSemanticsMessage(int msgID, Grammar g, org.antlr.runtime.Token offendingToken, Object arg, Object arg2) GrammarSyntaxMessage(int msgID, Grammar grammar, org.antlr.runtime.Token offendingToken, Object arg, org.antlr.runtime.RecognitionException exception) GrammarSyntaxMessage(int msgID, Grammar grammar, org.antlr.runtime.Token offendingToken, org.antlr.runtime.RecognitionException exception) Interpreter(Grammar grammar, org.antlr.runtime.IntStream input) LeftRecursiveRuleAnalyzer(org.antlr.runtime.tree.TreeNodeStream input, Grammar g, String ruleName) NameSpaceChecker(Grammar grammar)