antlr.actions.python
Class CodeLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byantlr.actions.python.CodeLexer
All Implemented Interfaces:
CodeLexerTokenTypes, TokenStream

public class CodeLexer
extends CharScanner
implements CodeLexerTokenTypes, TokenStream


Field Summary
static BitSet _tokenSet_0
           
static BitSet _tokenSet_1
           
protected  int lineOffset
           
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Fields inherited from interface antlr.actions.python.CodeLexerTokenTypes
ACTION, COMMENT, EOF, IGNWS, ML_COMMENT, NULL_TREE_LOOKAHEAD, SL_COMMENT, STUFF
 
Constructor Summary
CodeLexer(InputBuffer ib)
           
CodeLexer(java.io.InputStream in)
           
CodeLexer(LexerSharedInputState state)
           
CodeLexer(java.io.Reader in)
           
CodeLexer(java.lang.String s, java.lang.String fname, int line, Tool tool)
           
 
Method Summary
 void mACTION(boolean _createToken)
           
protected  void mCOMMENT(boolean _createToken)
           
protected  void mIGNWS(boolean _createToken)
           
protected  void mML_COMMENT(boolean _createToken)
           
protected  void mSL_COMMENT(boolean _createToken)
           
protected  void mSTUFF(boolean _createToken)
           
 Token nextToken()
           
 void reportError(RecognitionException e)
          Parser error-reporting function can be overridden in subclass
 void reportError(java.lang.String s)
          Parser error-reporting function can be overridden in subclass
 void reportWarning(java.lang.String s)
          Parser warning-reporting function can be overridden in subclass
 void setLineOffset(int lineOffset)
           
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineOffset

protected int lineOffset

_tokenSet_0

public static final BitSet _tokenSet_0

_tokenSet_1

public static final BitSet _tokenSet_1
Constructor Detail

CodeLexer

public CodeLexer(java.lang.String s,
                 java.lang.String fname,
                 int line,
                 Tool tool)

CodeLexer

public CodeLexer(java.io.InputStream in)

CodeLexer

public CodeLexer(java.io.Reader in)

CodeLexer

public CodeLexer(InputBuffer ib)

CodeLexer

public CodeLexer(LexerSharedInputState state)
Method Detail

setLineOffset

public void setLineOffset(int lineOffset)

reportError

public void reportError(RecognitionException e)
Description copied from class: CharScanner
Parser error-reporting function can be overridden in subclass

Overrides:
reportError in class CharScanner

reportError

public void reportError(java.lang.String s)
Description copied from class: CharScanner
Parser error-reporting function can be overridden in subclass

Overrides:
reportError in class CharScanner

reportWarning

public void reportWarning(java.lang.String s)
Description copied from class: CharScanner
Parser warning-reporting function can be overridden in subclass

Overrides:
reportWarning in class CharScanner

nextToken

public Token nextToken()
                throws TokenStreamException
Specified by:
nextToken in interface TokenStream
Throws:
TokenStreamException

mACTION

public final void mACTION(boolean _createToken)
                   throws RecognitionException,
                          CharStreamException,
                          TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException

mSTUFF

protected final void mSTUFF(boolean _createToken)
                     throws RecognitionException,
                            CharStreamException,
                            TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException

mCOMMENT

protected final void mCOMMENT(boolean _createToken)
                       throws RecognitionException,
                              CharStreamException,
                              TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException

mSL_COMMENT

protected final void mSL_COMMENT(boolean _createToken)
                          throws RecognitionException,
                                 CharStreamException,
                                 TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException

mML_COMMENT

protected final void mML_COMMENT(boolean _createToken)
                          throws RecognitionException,
                                 CharStreamException,
                                 TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException

mIGNWS

protected final void mIGNWS(boolean _createToken)
                     throws RecognitionException,
                            CharStreamException,
                            TokenStreamException
Throws:
RecognitionException
CharStreamException
TokenStreamException