class ParserGrammar extends 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 and Description |
|---|
ParserGrammar(String className_,
Tool tool_,
String superClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Top-level call to generate the code for this grammar
|
protected String |
getSuperClass() |
void |
processArguments(String[] args)
Process command line arguments.
|
boolean |
setOption(String key,
Token value)
Set parser options -- performs action on the following options:
|
define, getClassName, getDefaultErrorHandler, getFilename, getIntegerOption, getOption, getSymbol, getSymbols, hasOption, isDefined, setCodeGenerator, setFilename, setGrammarAnalyzer, setTokenManager, toStringpublic void generate()
throws IOException
generate in class GrammarIOExceptionprotected String getSuperClass()
getSuperClass in class Grammarpublic void processArguments(String[] args)
processArguments in class Grammar