class LexerGrammar extends Grammar
Modifier and Type | Field and Description |
---|---|
protected boolean |
caseSensitive
true if the lexer generates case-sensitive literals testing
|
protected boolean |
caseSensitiveLiterals |
protected BitSet |
charVocabulary |
protected boolean |
filterMode
true if lexer is to ignore all unrecognized tokens
|
protected String |
filterRule
if filterMode is true, then filterRule can indicate an optional
rule to use as the scarf language.
|
protected boolean |
testLiterals |
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 |
---|
LexerGrammar(String className_,
Tool tool_,
String superClass) |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Top-level call to generate the code
|
String |
getSuperClass() |
boolean |
getTestLiterals() |
void |
processArguments(String[] args)
Process command line arguments.
|
void |
setCharVocabulary(BitSet b)
Set the character vocabulary used by the lexer
|
boolean |
setOption(String key,
Token value)
Set lexer options
|
define, getClassName, getDefaultErrorHandler, getFilename, getIntegerOption, getOption, getSymbol, getSymbols, hasOption, isDefined, setCodeGenerator, setFilename, setGrammarAnalyzer, setTokenManager, toString
protected BitSet charVocabulary
protected boolean testLiterals
protected boolean caseSensitiveLiterals
protected boolean caseSensitive
protected boolean filterMode
protected String filterRule
public void generate() throws IOException
generate
in class Grammar
IOException
public String getSuperClass()
getSuperClass
in class Grammar
public boolean getTestLiterals()
public void processArguments(String[] args)
processArguments
in class Grammar
public void setCharVocabulary(BitSet b)