antlr.preprocessor

Class PreprocessorLexer

public class PreprocessorLexer extends CharScanner implements PreprocessorTokenTypes, TokenStream

Field Summary
static BitSet_tokenSet_0
static BitSet_tokenSet_1
static BitSet_tokenSet_10
static BitSet_tokenSet_2
static BitSet_tokenSet_3
static BitSet_tokenSet_4
static BitSet_tokenSet_5
static BitSet_tokenSet_6
static BitSet_tokenSet_7
static BitSet_tokenSet_8
static BitSet_tokenSet_9
Constructor Summary
PreprocessorLexer(InputStream in)
PreprocessorLexer(Reader in)
PreprocessorLexer(InputBuffer ib)
PreprocessorLexer(LexerSharedInputState state)
Method Summary
voidmACTION(boolean _createToken)
protected voidmALT(boolean _createToken)
voidmARG_ACTION(boolean _createToken)
voidmASSIGN_RHS(boolean _createToken)
voidmBANG(boolean _createToken)
voidmCHAR_LITERAL(boolean _createToken)
voidmCOMMA(boolean _createToken)
voidmCOMMENT(boolean _createToken)
protected voidmCURLY_BLOCK_SCARF(boolean _createToken)
protected voidmDIGIT(boolean _createToken)
protected voidmELEMENT(boolean _createToken)
protected voidmESC(boolean _createToken)
protected voidmID(boolean _createToken)
voidmID_OR_KEYWORD(boolean _createToken)
This rule picks off keywords in the lexer that need to be handled specially.
voidmLPAREN(boolean _createToken)
protected voidmML_COMMENT(boolean _createToken)
protected voidmNEWLINE(boolean _createToken)
voidmRCURLY(boolean _createToken)
voidmRPAREN(boolean _createToken)
voidmRULE_BLOCK(boolean _createToken)
voidmSEMI(boolean _createToken)
protected voidmSL_COMMENT(boolean _createToken)
voidmSTRING_LITERAL(boolean _createToken)
voidmSUBRULE_BLOCK(boolean _createToken)
voidmWS(boolean _createToken)
protected voidmXDIGIT(boolean _createToken)
TokennextToken()

Field Detail

_tokenSet_0

public static final BitSet _tokenSet_0

_tokenSet_1

public static final BitSet _tokenSet_1

_tokenSet_10

public static final BitSet _tokenSet_10

_tokenSet_2

public static final BitSet _tokenSet_2

_tokenSet_3

public static final BitSet _tokenSet_3

_tokenSet_4

public static final BitSet _tokenSet_4

_tokenSet_5

public static final BitSet _tokenSet_5

_tokenSet_6

public static final BitSet _tokenSet_6

_tokenSet_7

public static final BitSet _tokenSet_7

_tokenSet_8

public static final BitSet _tokenSet_8

_tokenSet_9

public static final BitSet _tokenSet_9

Constructor Detail

PreprocessorLexer

public PreprocessorLexer(InputStream in)

PreprocessorLexer

public PreprocessorLexer(Reader in)

PreprocessorLexer

public PreprocessorLexer(InputBuffer ib)

PreprocessorLexer

public PreprocessorLexer(LexerSharedInputState state)

Method Detail

mACTION

public final void mACTION(boolean _createToken)

mALT

protected final void mALT(boolean _createToken)

mARG_ACTION

public final void mARG_ACTION(boolean _createToken)

mASSIGN_RHS

public final void mASSIGN_RHS(boolean _createToken)

mBANG

public final void mBANG(boolean _createToken)

mCHAR_LITERAL

public final void mCHAR_LITERAL(boolean _createToken)

mCOMMA

public final void mCOMMA(boolean _createToken)

mCOMMENT

public final void mCOMMENT(boolean _createToken)

mCURLY_BLOCK_SCARF

protected final void mCURLY_BLOCK_SCARF(boolean _createToken)

mDIGIT

protected final void mDIGIT(boolean _createToken)

mELEMENT

protected final void mELEMENT(boolean _createToken)

mESC

protected final void mESC(boolean _createToken)

mID

protected final void mID(boolean _createToken)

mID_OR_KEYWORD

public final void mID_OR_KEYWORD(boolean _createToken)
This rule picks off keywords in the lexer that need to be handled specially. For example, "header" is the start of the header action (used to distinguish between options block and an action). We do not want "header" to go back to the parser as a simple keyword...it must pick off the action afterwards.

mLPAREN

public final void mLPAREN(boolean _createToken)

mML_COMMENT

protected final void mML_COMMENT(boolean _createToken)

mNEWLINE

protected final void mNEWLINE(boolean _createToken)

mRCURLY

public final void mRCURLY(boolean _createToken)

mRPAREN

public final void mRPAREN(boolean _createToken)

mRULE_BLOCK

public final void mRULE_BLOCK(boolean _createToken)

mSEMI

public final void mSEMI(boolean _createToken)

mSL_COMMENT

protected final void mSL_COMMENT(boolean _createToken)

mSTRING_LITERAL

public final void mSTRING_LITERAL(boolean _createToken)

mSUBRULE_BLOCK

public final void mSUBRULE_BLOCK(boolean _createToken)

mWS

public final void mWS(boolean _createToken)

mXDIGIT

protected final void mXDIGIT(boolean _createToken)

nextToken

public Token nextToken()