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 java.lang.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(java.lang.String className_,
Tool tool_,
java.lang.String superClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Top-level call to generate the code
|
java.lang.String |
getSuperClass() |
boolean |
getTestLiterals() |
void |
processArguments(java.lang.String[] args)
Process command line arguments.
|
void |
setCharVocabulary(BitSet b)
Set the character vocabulary used by the lexer
|
boolean |
setOption(java.lang.String key,
Token value)
Set lexer options
|
define, getClassName, getDefaultErrorHandler, getFilename, getIntegerOption, getOption, getSymbol, getSymbols, hasOption, isDefined, setCodeGenerator, setFilename, setGrammarAnalyzer, setTokenManager, toStringprotected BitSet charVocabulary
protected boolean testLiterals
protected boolean caseSensitiveLiterals
protected boolean caseSensitive
protected boolean filterMode
protected java.lang.String filterRule
LexerGrammar(java.lang.String className_,
Tool tool_,
java.lang.String superClass)
public void generate()
throws java.io.IOException
public java.lang.String getSuperClass()
getSuperClass in class Grammarpublic boolean getTestLiterals()
public void processArguments(java.lang.String[] args)
processArguments in class Grammarpublic void setCharVocabulary(BitSet b)