Package antlr
Class ParserGrammar
java.lang.Object
antlr.Grammar
antlr.ParserGrammar
Parser-specific grammar subclass
-
Field Summary
Fields inherited from class antlr.Grammar
analyzerDebug, antlrTool, buildAST, classMemberAction, className, comment, debuggingOutput, defaultErrorHandler, exportVocab, fileName, generator, hasSyntacticPredicate, hasUserErrorHandling, importVocab, interactive, maxk, options, preambleAction, rules, superClass, symbols, theLLkAnalyzer, tokenManager, traceRules
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Top-level call to generate the code for this grammarprotected String
void
processArguments
(String[] args) Process command line arguments.boolean
Set parser options -- performs action on the following options:Methods inherited from class antlr.Grammar
define, getClassName, getDefaultErrorHandler, getFilename, getIntegerOption, getOption, getSymbol, getSymbols, hasOption, isDefined, setCodeGenerator, setFilename, setGrammarAnalyzer, setTokenManager, toString
-
Constructor Details
-
ParserGrammar
-
-
Method Details
-
generate
Top-level call to generate the code for this grammar- Specified by:
generate
in classGrammar
- Throws:
IOException
-
getSuperClass
- Specified by:
getSuperClass
in classGrammar
-
processArguments
Process command line arguments. -trace have all rules call traceIn/traceOut -traceParser have parser rules call traceIn/traceOut -debug generate debugging output for parser debugger- Specified by:
processArguments
in classGrammar
-
setOption
Set parser options -- performs action on the following options:
-