antlr.actions.python

Class CodeLexer

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

EOF_CHAR, NO_CHAR, _returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, 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(InputStream in)
CodeLexer(Reader in)
CodeLexer(String s, String fname, int line, Tool tool)
CodeLexer(InputBuffer ib)
CodeLexer(LexerSharedInputState state)

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(String s)
void
reportError(RecognitionException e)
void
reportWarning(String s)
void
setLineOffset(int lineOffset)

Methods inherited from class antlr.CharScanner

LA, append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF

Field Details

_tokenSet_0

public static final BitSet _tokenSet_0


_tokenSet_1

public static final BitSet _tokenSet_1


lineOffset

protected int lineOffset

Constructor Details

CodeLexer

public CodeLexer(InputStream in)


CodeLexer

public CodeLexer(Reader in)


CodeLexer

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


CodeLexer

public CodeLexer(InputBuffer ib)


CodeLexer

public CodeLexer(LexerSharedInputState state)

Method Details

mACTION

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


mCOMMENT

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


mIGNWS

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


mML_COMMENT

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


mSL_COMMENT

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


mSTUFF

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


nextToken

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


reportError

public void reportError(String s)
Overrides:
reportError in interface CharScanner


reportError

public void reportError(RecognitionException e)
Overrides:
reportError in interface CharScanner


reportWarning

public void reportWarning(String s)
Overrides:
reportWarning in interface CharScanner


setLineOffset

public void setLineOffset(int lineOffset)