|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.Grammar | +--antlr.LexerGrammar
Field Summary | |
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
|
Fields inherited from class antlr.Grammar |
analyzerDebug, buildAST, classMemberAction, className, comment, debuggingOutput, defaultErrorHandler, exportVocab, fileName, generator, hasSyntacticPredicate, hasUserErrorHandling, importVocab, interactive, maxk, options, preambleAction, rules, superClass, symbols, theLLkAnalyzer, tokenManager, tool, traceRules |
Constructor Summary | |
(package private) |
LexerGrammar(String className_,
Tool tool_,
String superClass)
|
Method Summary | |
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 |
Methods inherited from class antlr.Grammar |
define, getClassName, getDefaultErrorHandler, getFilename, getIntegerOption, getOption, getSymbol, getSymbols, hasOption, isDefined, setCodeGenerator, setFilename, setGrammarAnalyzer, setTokenManager, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected BitSet charVocabulary
protected boolean testLiterals
protected boolean caseSensitiveLiterals
protected boolean caseSensitive
protected boolean filterMode
protected String filterRule
Constructor Detail |
LexerGrammar(String className_, Tool tool_, String superClass)
Method Detail |
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)
public boolean setOption(String key, Token value)
setOption
in class Grammar
key
- The name of the option.value
- The value to associate with the key.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |