Public Member Functions | |
Grammar (String className_, Tool tool_, String superClass) | |
void | define (RuleSymbol rs) |
abstract void | generate () throws IOException |
boolean | getDefaultErrorHandler () |
String | getFilename () |
int | getIntegerOption (String key) throws NumberFormatException |
Token | getOption (String key) |
GrammarSymbol | getSymbol (String s) |
Enumeration | getSymbols () |
boolean | hasOption (String key) |
boolean | isDefined (String s) |
abstract void | processArguments (String[] args) |
void | setCodeGenerator (CodeGenerator gen) |
void | setFilename (String s) |
void | setGrammarAnalyzer (LLkGrammarAnalyzer a) |
boolean | setOption (String key, Token value) |
void | setTokenManager (TokenManager tokenManager_) |
String | toString () |
Protected Member Functions | |
String | getClassName () |
abstract String | getSuperClass () |
Protected Attributes | |
Tool | antlrTool |
CodeGenerator | generator |
LLkGrammarAnalyzer | theLLkAnalyzer |
Hashtable | symbols |
boolean | buildAST = false |
boolean | analyzerDebug = false |
boolean | interactive = false |
String | superClass = null |
TokenManager | tokenManager |
String | exportVocab = null |
String | importVocab = null |
Hashtable | options |
Vector | rules |
Token | preambleAction = new CommonToken(Token.INVALID_TYPE, "") |
String | className = null |
String | fileName = null |
Token | classMemberAction = new CommonToken(Token.INVALID_TYPE, "") |
boolean | hasSyntacticPredicate = false |
boolean | hasUserErrorHandling = false |
int | maxk = 1 |
boolean | traceRules = false |
boolean | debuggingOutput = false |
boolean | defaultErrorHandler = true |
String | comment = null |
A Grammar holds a set of rules (which are stored in a symbol table). Most of the time a grammar needs a code generator and an LLkAnalyzer too.
antlr.Grammar.Grammar | ( | String | className_, | |
Tool | tool_, | |||
String | superClass | |||
) |
void antlr.Grammar.define | ( | RuleSymbol | rs | ) |
Define a rule
References antlr.collections.impl.Vector.appendElement(), antlr.GrammarSymbol.getId(), antlr.Grammar.rules, and antlr.Grammar.symbols.
Referenced by antlr.DefineGrammarSymbols.defineRuleName(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.HTMLCodeGenerator.genNextToken(), antlr.DocBookCodeGenerator.genNextToken(), antlr.DiagnosticCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), and antlr.DefineGrammarSymbols.refRule().
abstract void antlr.Grammar.generate | ( | ) | throws IOException [pure virtual] |
Top-level call to generate the code for this grammar
Implemented in antlr.LexerGrammar, antlr.ParserGrammar, and antlr.TreeWalkerGrammar.
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), and antlr.CppCodeGenerator.gen().
String antlr.Grammar.getClassName | ( | ) | [protected] |
References antlr.Grammar.className.
Referenced by antlr.MakeGrammar.abortGrammar(), antlr.DefineGrammarSymbols.abortGrammar(), antlr.DefineGrammarSymbols.endOptions(), antlr.DefaultJavaCodeGeneratorPrintWriterManager.finishOutput(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.PythonCodeGenerator.genHeader(), antlr.JavaCodeGenerator.genHeader(), antlr.HTMLCodeGenerator.genHeader(), antlr.DocBookCodeGenerator.genHeader(), antlr.CSharpCodeGenerator.genHeader(), antlr.PythonCodeGenerator.genHeaderInit(), antlr.PythonCodeGenerator.genHeaderMain(), antlr.CppCodeGenerator.genInclude(), antlr.CppCodeGenerator.genInitFactory(), antlr.PythonCodeGenerator.genLexerTest(), antlr.CppCodeGenerator.genNextToken(), antlr.CodeGenerator.setGrammar(), antlr.DefaultJavaCodeGeneratorPrintWriterManager.setupOutput(), antlr.DefineGrammarSymbols.startLexer(), antlr.DefineGrammarSymbols.startParser(), and antlr.DefineGrammarSymbols.startTreeWalker().
boolean antlr.Grammar.getDefaultErrorHandler | ( | ) |
References antlr.Grammar.defaultErrorHandler.
Referenced by antlr.MakeGrammar.createNextTokenRule(), and antlr.MakeGrammar.defineRuleName().
String antlr.Grammar.getFilename | ( | ) |
References antlr.Grammar.fileName.
Referenced by antlr.MakeGrammar.beginTree(), antlr.MakeGrammar.defineRuleName(), antlr.DefineGrammarSymbols.defineRuleName(), antlr.DefineGrammarSymbols.defineToken(), antlr.LLkAnalyzer.deterministic(), antlr.LLkAnalyzer.deterministicImpliedPath(), antlr.MakeGrammar.endExceptionSpec(), antlr.MakeGrammar.endSubRule(), antlr.CodeGenerator.extractIdOfAction(), antlr.CodeGenerator.extractTypeOfAction(), antlr.DefaultJavaCodeGeneratorPrintWriterManager.finishOutput(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.PythonCodeGenerator.genAlt(), antlr.JavaCodeGenerator.genAlt(), antlr.CSharpCodeGenerator.genAlt(), antlr.CppCodeGenerator.genAlt(), antlr.PythonCodeGenerator.genCommonBlock(), antlr.JavaCodeGenerator.genCommonBlock(), antlr.CSharpCodeGenerator.genCommonBlock(), antlr.CppCodeGenerator.genCommonBlock(), antlr.CppCodeGenerator.genInitFactory(), antlr.PythonCodeGenerator.genRule(), antlr.JavaCodeGenerator.genRule(), antlr.CSharpCodeGenerator.genRule(), antlr.CppCodeGenerator.genRule(), antlr.CppCodeGenerator.getASTCreateString(), antlr.LLkAnalyzer.look(), antlr.MakeGrammar.oneOrMoreSubRule(), antlr.MakeGrammar.optionalSubRule(), antlr.PythonCodeGenerator.processActionCode(), antlr.PythonCodeGenerator.processActionForSpecialSymbols(), antlr.JavaCodeGenerator.processActionForSpecialSymbols(), antlr.CSharpCodeGenerator.processActionForSpecialSymbols(), antlr.CppCodeGenerator.processActionForSpecialSymbols(), antlr.MakeGrammar.refCharLiteral(), antlr.MakeGrammar.refCharRange(), antlr.MakeGrammar.refElementOption(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.refRule(), antlr.MakeGrammar.refStringLiteral(), antlr.MakeGrammar.refToken(), antlr.MakeGrammar.refTokenRange(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.DefineGrammarSymbols.setGrammarOption(), antlr.TreeWalkerGrammar.setOption(), antlr.RuleBlock.setOption(), antlr.ParserGrammar.setOption(), antlr.LexerGrammar.setOption(), antlr.GrammarAtom.setOption(), antlr.Grammar.setOption(), antlr.AlternativeBlock.setOption(), antlr.StringLiteralElement.StringLiteralElement(), antlr.MakeGrammar.synPred(), antlr.TokenRefElement.TokenRefElement(), antlr.DefaultToolErrorHandler.warnAltAmbiguity(), antlr.DefaultToolErrorHandler.warnAltExitAmbiguity(), and antlr.MakeGrammar.zeroOrMoreSubRule().
int antlr.Grammar.getIntegerOption | ( | String | key | ) | throws NumberFormatException |
Get an integer option. Given the name of the option find its associated integer value. If the associated value is not an integer or is not in the table, then throw an exception of type NumberFormatException.
key | The name of the option |
References antlr.Token.getText(), antlr.Token.getType(), and antlr.Grammar.options.
Referenced by antlr.CodeGenerator.setGrammar(), and antlr.Grammar.setOption().
Token antlr.Grammar.getOption | ( | String | key | ) |
Get an option. Given the name of the option find its associated value.
key | The name of the option |
References antlr.Grammar.options.
Referenced by antlr.CodeGenerator.setGrammar().
abstract String antlr.Grammar.getSuperClass | ( | ) | [protected, pure virtual] |
Implemented in antlr.LexerGrammar, antlr.ParserGrammar, and antlr.TreeWalkerGrammar.
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), and antlr.CppCodeGenerator.genInclude().
GrammarSymbol antlr.Grammar.getSymbol | ( | String | s | ) |
References antlr.Grammar.symbols.
Referenced by antlr.MakeGrammar.defineRuleName(), antlr.DefineGrammarSymbols.defineRuleName(), antlr.LLkAnalyzer.FOLLOW(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), antlr.CodeGenerator.getFIRSTBitSet(), antlr.CodeGenerator.getFOLLOWBitSet(), antlr.LLkAnalyzer.look(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.refRule(), and antlr.AlternativeBlock.removeTrackingOfRuleRefs().
Enumeration antlr.Grammar.getSymbols | ( | ) |
References antlr.Grammar.symbols.
Referenced by antlr.DiagnosticCodeGenerator.gen().
boolean antlr.Grammar.hasOption | ( | String | key | ) |
Check the existence of an option in the table
key | The name of the option |
References antlr.Grammar.options.
Referenced by antlr.CodeGenerator.setGrammar().
boolean antlr.Grammar.isDefined | ( | String | s | ) |
Is a rule symbol defined? (not used for tokens)
References antlr.Grammar.symbols.
Referenced by antlr.DefineGrammarSymbols.defineRuleName(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), and antlr.DefineGrammarSymbols.refRule().
abstract void antlr.Grammar.processArguments | ( | String[] | args | ) | [pure virtual] |
Process command line arguments. Implemented in subclasses
Implemented in antlr.LexerGrammar, antlr.ParserGrammar, and antlr.TreeWalkerGrammar.
Referenced by antlr.DefineGrammarSymbols.startParser(), and antlr.DefineGrammarSymbols.startTreeWalker().
void antlr.Grammar.setCodeGenerator | ( | CodeGenerator | gen | ) |
void antlr.Grammar.setFilename | ( | String | s | ) |
void antlr.Grammar.setGrammarAnalyzer | ( | LLkGrammarAnalyzer | a | ) |
boolean antlr.Grammar.setOption | ( | String | key, | |
Token | value | |||
) |
Set a generic option. This associates a generic option key with a Token value. No validation is performed by this method, although users of the value (code generation and/or analysis) may require certain formats. The value is stored as a token so that the location of an error can be reported.
key | The name of the option. | |
value | The value to associate with the key. |
Reimplemented in antlr.LexerGrammar, antlr.ParserGrammar, and antlr.TreeWalkerGrammar.
References antlr.Grammar.analyzerDebug, antlr.Grammar.antlrTool, antlr.Grammar.defaultErrorHandler, antlr.Tool.error(), antlr.Token.getColumn(), antlr.Grammar.getFilename(), antlr.Grammar.getIntegerOption(), antlr.Token.getLine(), antlr.Token.getText(), antlr.Grammar.maxk, and antlr.Grammar.options.
Referenced by antlr.DefineGrammarSymbols.setGrammarOption().
void antlr.Grammar.setTokenManager | ( | TokenManager | tokenManager_ | ) |
References antlr.Grammar.tokenManager.
Referenced by antlr.DefineGrammarSymbols.endOptions().
String antlr.Grammar.toString | ( | ) |
Print out the grammar without actions
References antlr.collections.impl.Vector.elements(), antlr.RuleSymbol.getBlock(), antlr.GrammarSymbol.id, antlr.Grammar.rules, and antlr.RuleBlock.toString().
boolean antlr.Grammar.analyzerDebug = false [protected] |
Referenced by antlr.LLkAnalyzer.setGrammar(), and antlr.Grammar.setOption().
Tool antlr.Grammar.antlrTool [protected] |
Referenced by antlr.RuleBlock.addExceptionSpec(), antlr.MakeGrammar.createNextTokenRule(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), antlr.Grammar.Grammar(), antlr.TreeWalkerGrammar.processArguments(), antlr.ParserGrammar.processArguments(), antlr.LexerGrammar.processArguments(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.AlternativeBlock.removeTrackingOfRuleRefs(), antlr.DefineGrammarSymbols.setFileOption(), antlr.TreeWalkerGrammar.setOption(), antlr.RuleBlock.setOption(), antlr.ParserGrammar.setOption(), antlr.LexerGrammar.setOption(), antlr.GrammarAtom.setOption(), antlr.Grammar.setOption(), antlr.AlternativeBlock.setOption(), antlr.StringLiteralElement.StringLiteralElement(), and antlr.TokenRefElement.TokenRefElement().
boolean antlr.Grammar.buildAST = false [protected] |
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.PythonCodeGenerator.genBlockPreamble(), antlr.JavaCodeGenerator.genBlockPreamble(), antlr.CSharpCodeGenerator.genBlockPreamble(), antlr.CppCodeGenerator.genBlockPreamble(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.CSharpCodeGenerator.genInitFactory(), antlr.CppCodeGenerator.genInitFactory(), antlr.PythonCodeGenerator.genRule(), antlr.JavaCodeGenerator.genRule(), antlr.CSharpCodeGenerator.genRule(), antlr.CppCodeGenerator.genRule(), antlr.PythonCodeGenerator.mapTreeId(), antlr.JavaCodeGenerator.mapTreeId(), antlr.CSharpCodeGenerator.mapTreeId(), antlr.CppCodeGenerator.mapTreeId(), antlr.JavaCodeGenerator.processActionForSpecialSymbols(), antlr.CSharpCodeGenerator.processActionForSpecialSymbols(), antlr.CppCodeGenerator.processActionForSpecialSymbols(), antlr.TreeWalkerGrammar.setOption(), and antlr.ParserGrammar.setOption().
Token antlr.Grammar.classMemberAction = new CommonToken(Token.INVALID_TYPE, "") [protected] |
String antlr.Grammar.className = null [protected] |
Referenced by antlr.Grammar.getClassName(), and antlr.Grammar.Grammar().
String antlr.Grammar.comment = null [protected] |
Referenced by antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.PythonCodeGenerator.genJavadocComment(), antlr.DefineGrammarSymbols.startLexer(), antlr.DefineGrammarSymbols.startParser(), and antlr.DefineGrammarSymbols.startTreeWalker().
boolean antlr.Grammar.debuggingOutput = false [protected] |
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.PythonCodeGenerator.genCommonBlock(), antlr.JavaCodeGenerator.genCommonBlock(), antlr.CSharpCodeGenerator.genCommonBlock(), antlr.CppCodeGenerator.genCommonBlock(), antlr.CppCodeGenerator.genInclude(), antlr.PythonCodeGenerator.genRule(), antlr.JavaCodeGenerator.genRule(), antlr.CSharpCodeGenerator.genRule(), antlr.CppCodeGenerator.genRule(), antlr.PythonCodeGenerator.genSemPred(), antlr.JavaCodeGenerator.genSemPred(), antlr.CSharpCodeGenerator.genSemPred(), antlr.CppCodeGenerator.genSemPred(), antlr.PythonCodeGenerator.genSynPred(), antlr.JavaCodeGenerator.genSynPred(), antlr.CSharpCodeGenerator.genSynPred(), antlr.CppCodeGenerator.genSynPred(), antlr.ParserGrammar.getSuperClass(), antlr.LexerGrammar.getSuperClass(), antlr.ParserGrammar.processArguments(), and antlr.LexerGrammar.processArguments().
boolean antlr.Grammar.defaultErrorHandler = true [protected] |
String antlr.Grammar.exportVocab = null [protected] |
The name of the export vocabulary...used to generate the output token types interchange file.
Referenced by antlr.DefineGrammarSymbols.endOptions(), and antlr.DefineGrammarSymbols.setGrammarOption().
String antlr.Grammar.fileName = null [protected] |
Referenced by antlr.Grammar.getFilename(), and antlr.Grammar.setFilename().
CodeGenerator antlr.Grammar.generator [protected] |
Referenced by antlr.ZeroOrMoreBlock.generate(), antlr.WildcardElement.generate(), antlr.TreeWalkerGrammar.generate(), antlr.TreeElement.generate(), antlr.TokenRefElement.generate(), antlr.TokenRangeElement.generate(), antlr.SynPredBlock.generate(), antlr.StringLiteralElement.generate(), antlr.RuleRefElement.generate(), antlr.RuleBlock.generate(), antlr.ParserGrammar.generate(), antlr.OneOrMoreBlock.generate(), antlr.LexerGrammar.generate(), antlr.CharRangeElement.generate(), antlr.CharLiteralElement.generate(), antlr.AlternativeBlock.generate(), antlr.ActionElement.generate(), and antlr.Grammar.setCodeGenerator().
boolean antlr.Grammar.hasSyntacticPredicate = false [protected] |
Referenced by antlr.MakeGrammar.endSubRule(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.PythonCodeGenerator.genAlt(), antlr.JavaCodeGenerator.genAlt(), antlr.PythonCodeGenerator.genRule(), antlr.JavaCodeGenerator.genRule(), antlr.CSharpCodeGenerator.genRule(), and antlr.CppCodeGenerator.genRule().
boolean antlr.Grammar.hasUserErrorHandling = false [protected] |
String antlr.Grammar.importVocab = null [protected] |
The name of the import vocabulary. "Initial conditions"
Referenced by antlr.DefineGrammarSymbols.endOptions(), and antlr.DefineGrammarSymbols.setGrammarOption().
boolean antlr.Grammar.interactive = false [protected] |
Referenced by antlr.ParserGrammar.setOption(), and antlr.LexerGrammar.setOption().
int antlr.Grammar.maxk = 1 [protected] |
Referenced by antlr.BlockEndElement.BlockEndElement(), antlr.LLkAnalyzer.deterministic(), antlr.LLkAnalyzer.deterministicImpliedPath(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.PythonCodeGenerator.genCommonBlock(), antlr.JavaCodeGenerator.genCommonBlock(), antlr.CSharpCodeGenerator.genCommonBlock(), antlr.CppCodeGenerator.genCommonBlock(), antlr.HTMLCodeGenerator.genFollowSetForRuleBlock(), antlr.DocBookCodeGenerator.genFollowSetForRuleBlock(), antlr.DiagnosticCodeGenerator.genFollowSetForRuleBlock(), antlr.HTMLCodeGenerator.genLookaheadSetForAlt(), antlr.DocBookCodeGenerator.genLookaheadSetForAlt(), antlr.DiagnosticCodeGenerator.genLookaheadSetForAlt(), antlr.HTMLCodeGenerator.genLookaheadSetForBlock(), antlr.DocBookCodeGenerator.genLookaheadSetForBlock(), antlr.DiagnosticCodeGenerator.genLookaheadSetForBlock(), antlr.PythonCodeGenerator.getLookaheadTestExpression(), antlr.JavaCodeGenerator.getLookaheadTestExpression(), antlr.CSharpCodeGenerator.getLookaheadTestExpression(), antlr.CppCodeGenerator.getLookaheadTestExpression(), antlr.PythonCodeGenerator.lookaheadIsEmpty(), antlr.JavaCodeGenerator.lookaheadIsEmpty(), antlr.CSharpCodeGenerator.lookaheadIsEmpty(), antlr.CppCodeGenerator.lookaheadIsEmpty(), antlr.RuleBlock.prepareForAnalysis(), antlr.AlternativeBlock.prepareForAnalysis(), antlr.RuleBlock.RuleBlock(), antlr.RuleEndElement.RuleEndElement(), antlr.Grammar.setOption(), and antlr.RuleBlock.toString().
Hashtable antlr.Grammar.options [protected] |
Token antlr.Grammar.preambleAction = new CommonToken(Token.INVALID_TYPE, "") [protected] |
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.DefineGrammarSymbols.startLexer(), antlr.DefineGrammarSymbols.startParser(), and antlr.DefineGrammarSymbols.startTreeWalker().
Vector antlr.Grammar.rules [protected] |
Referenced by antlr.Grammar.define(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.HTMLCodeGenerator.gen(), antlr.DocBookCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.HTMLCodeGenerator.genNextToken(), antlr.DocBookCodeGenerator.genNextToken(), antlr.DiagnosticCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), antlr.Grammar.Grammar(), and antlr.Grammar.toString().
String antlr.Grammar.superClass = null [protected] |
Hashtable antlr.Grammar.symbols [protected] |
LLkGrammarAnalyzer antlr.Grammar.theLLkAnalyzer [protected] |
Referenced by antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.CSharpCodeGenerator.gen(), antlr.CppCodeGenerator.gen(), antlr.HTMLCodeGenerator.genFollowSetForRuleBlock(), antlr.DocBookCodeGenerator.genFollowSetForRuleBlock(), antlr.DiagnosticCodeGenerator.genFollowSetForRuleBlock(), antlr.HTMLCodeGenerator.genLookaheadSetForBlock(), antlr.DocBookCodeGenerator.genLookaheadSetForBlock(), antlr.DiagnosticCodeGenerator.genLookaheadSetForBlock(), antlr.PythonCodeGenerator.genNextToken(), antlr.JavaCodeGenerator.genNextToken(), antlr.DiagnosticCodeGenerator.genNextToken(), antlr.CSharpCodeGenerator.genNextToken(), antlr.CppCodeGenerator.genNextToken(), antlr.PythonCodeGenerator.genRule(), antlr.JavaCodeGenerator.genRule(), antlr.DiagnosticCodeGenerator.genRule(), antlr.CSharpCodeGenerator.genRule(), antlr.CppCodeGenerator.genRule(), antlr.CodeGenerator.getFIRSTBitSet(), antlr.CodeGenerator.getFOLLOWBitSet(), antlr.ZeroOrMoreBlock.look(), antlr.WildcardElement.look(), antlr.TreeElement.look(), antlr.TokenRefElement.look(), antlr.TokenRangeElement.look(), antlr.SynPredBlock.look(), antlr.StringLiteralElement.look(), antlr.RuleRefElement.look(), antlr.RuleEndElement.look(), antlr.RuleBlock.look(), antlr.OneOrMoreBlock.look(), antlr.CharRangeElement.look(), antlr.CharLiteralElement.look(), antlr.BlockEndElement.look(), antlr.AlternativeBlock.look(), antlr.ActionElement.look(), and antlr.Grammar.setGrammarAnalyzer().
TokenManager antlr.Grammar.tokenManager [protected] |
The token manager associated with the grammar, if any. The token manager is responsible for maintaining the set of valid tokens, and is conceptually shared between the lexer and parser. This may be either a LexerGrammar or a ImportVocabTokenManager.
Referenced by antlr.DefineGrammarSymbols._refStringLiteral(), antlr.DefineGrammarSymbols._refToken(), antlr.DefineGrammarSymbols.defineRuleName(), antlr.DefineGrammarSymbols.defineToken(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.CppCodeGenerator.genBitsets(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.CSharpCodeGenerator.genInitFactory(), antlr.CppCodeGenerator.genInitFactory(), antlr.PythonCodeGenerator.genTokenASTNodeMap(), antlr.JavaCodeGenerator.genTokenASTNodeMap(), antlr.PythonCodeGenerator.genTokenStrings(), antlr.JavaCodeGenerator.genTokenStrings(), antlr.CSharpCodeGenerator.genTokenStrings(), antlr.CppCodeGenerator.genTokenStrings(), antlr.PythonCodeGenerator.getASTCreateString(), antlr.JavaCodeGenerator.getASTCreateString(), antlr.CSharpCodeGenerator.getASTCreateString(), antlr.CppCodeGenerator.getASTCreateString(), antlr.CSharpCodeGenerator.getTokenTypesClassName(), antlr.LLkAnalyzer.look(), antlr.HTMLCodeGenerator.printSet(), antlr.DocBookCodeGenerator.printSet(), antlr.DiagnosticCodeGenerator.printSet(), antlr.CSharpCodeGenerator.processStringForASTConstructor(), antlr.CppCodeGenerator.processStringForASTConstructor(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.RuleBlock.setOption(), antlr.Grammar.setTokenManager(), antlr.StringLiteralElement.StringLiteralElement(), antlr.TokenRangeElement.TokenRangeElement(), antlr.TokenRefElement.TokenRefElement(), antlr.RuleBlock.toString(), antlr.Lookahead.toString(), and antlr.AlternativeBlock.toString().
boolean antlr.Grammar.traceRules = false [protected] |