antlr.actions.python

Class CodeLexer

public class CodeLexer extends CharScanner implements CodeLexerTokenTypes, TokenStream

Field Summary
protected intlineOffset
static BitSet_tokenSet_0
static BitSet_tokenSet_1
Constructor Summary
CodeLexer(String s, String fname, int line, Tool tool)
CodeLexer(InputStream in)
CodeLexer(Reader in)
CodeLexer(InputBuffer ib)
CodeLexer(LexerSharedInputState state)
Method Summary
voidmACTION(boolean _createToken)
protected voidmCOMMENT(boolean _createToken)
protected voidmIGNWS(boolean _createToken)
protected voidmML_COMMENT(boolean _createToken)
protected voidmSL_COMMENT(boolean _createToken)
protected voidmSTUFF(boolean _createToken)
TokennextToken()
voidreportError(RecognitionException e)
voidreportError(String s)
voidreportWarning(String s)
voidsetLineOffset(int lineOffset)

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(String s, String fname, int line, Tool tool)

CodeLexer

public CodeLexer(InputStream in)

CodeLexer

public CodeLexer(Reader in)

CodeLexer

public CodeLexer(InputBuffer ib)

CodeLexer

public CodeLexer(LexerSharedInputState state)

Method Detail

mACTION

public final void mACTION(boolean _createToken)

mCOMMENT

protected final void mCOMMENT(boolean _createToken)

mIGNWS

protected final void mIGNWS(boolean _createToken)

mML_COMMENT

protected final void mML_COMMENT(boolean _createToken)

mSL_COMMENT

protected final void mSL_COMMENT(boolean _createToken)

mSTUFF

protected final void mSTUFF(boolean _createToken)

nextToken

public Token nextToken()

reportError

public void reportError(RecognitionException e)

reportError

public void reportError(String s)

reportWarning

public void reportWarning(String s)

setLineOffset

public void setLineOffset(int lineOffset)