Public Member Functions | Protected Attributes | Package Functions

antlr.LexerGrammar Class Reference

Inheritance diagram for antlr.LexerGrammar:
antlr.Grammar

List of all members.

Public Member Functions

void generate () throws IOException
String getSuperClass ()
boolean getTestLiterals ()
void processArguments (String[] args)
void setCharVocabulary (BitSet b)
boolean setOption (String key, Token value)

Protected Attributes

BitSet charVocabulary
boolean testLiterals = true
boolean caseSensitiveLiterals = true
boolean caseSensitive = true
boolean filterMode = false
String filterRule = null

Package Functions

 LexerGrammar (String className_, Tool tool_, String superClass)

Detailed Description

Lexer-specific grammar subclass


Constructor & Destructor Documentation

antlr.LexerGrammar.LexerGrammar ( String  className_,
Tool  tool_,
String  superClass 
) [package]

Member Function Documentation

void antlr.LexerGrammar.generate (  )  throws IOException [virtual]

Top-level call to generate the code

Implements antlr.Grammar.

References antlr.CodeGenerator.gen(), and antlr.Grammar.generator.

String antlr.LexerGrammar.getSuperClass (  )  [virtual]
boolean antlr.LexerGrammar.getTestLiterals (  ) 
void antlr.LexerGrammar.processArguments ( String[]  args  )  [virtual]

Process command line arguments. -trace have all rules call traceIn/traceOut -traceLexer have lexical rules call traceIn/traceOut -debug generate debugging output for parser debugger

Implements antlr.Grammar.

References antlr.Grammar.antlrTool, antlr.Grammar.debuggingOutput, antlr.Tool.setArgOK(), and antlr.Grammar.traceRules.

Referenced by antlr.DefineGrammarSymbols.startLexer().

void antlr.LexerGrammar.setCharVocabulary ( BitSet  b  ) 

Set the character vocabulary used by the lexer

References antlr.LexerGrammar.charVocabulary.

Referenced by antlr.LexerGrammar.LexerGrammar().


Member Data Documentation

boolean antlr.LexerGrammar.caseSensitive = true [protected]

true if the lexer generates case-sensitive literals testing

Referenced by antlr.LexerGrammar.setOption().

boolean antlr.LexerGrammar.filterMode = false [protected]

true if lexer is to ignore all unrecognized tokens

Referenced by antlr.LexerGrammar.setOption().

String antlr.LexerGrammar.filterRule = null [protected]

if filterMode is true, then filterRule can indicate an optional rule to use as the scarf language. If null, programmer used plain "filter=true" not "filter=rule".

Referenced by antlr.LexerGrammar.setOption().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties