public class PreprocessorLexer extends CharScanner implements PreprocessorTokenTypes, TokenStream
Modifier and Type | Field and Description |
---|---|
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 |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
ACTION, ALT, ARG_ACTION, ASSIGN_RHS, BANG, CHAR_LITERAL, COMMA, COMMENT, CURLY_BLOCK_SCARF, DIGIT, ELEMENT, EOF, ESC, HEADER_ACTION, ID, ID_OR_KEYWORD, LITERAL_catch, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LPAREN, ML_COMMENT, NEWLINE, NULL_TREE_LOOKAHEAD, OPTIONS_START, RCURLY, RPAREN, RULE_BLOCK, SEMI, SL_COMMENT, STRING_LITERAL, SUBRULE_BLOCK, TOKENS_SPEC, WS, XDIGIT
Constructor and Description |
---|
PreprocessorLexer(InputBuffer ib) |
PreprocessorLexer(InputStream in) |
PreprocessorLexer(LexerSharedInputState state) |
PreprocessorLexer(Reader in) |
Modifier and Type | Method and Description |
---|---|
void |
mACTION(boolean _createToken) |
protected void |
mALT(boolean _createToken) |
void |
mARG_ACTION(boolean _createToken) |
void |
mASSIGN_RHS(boolean _createToken) |
void |
mBANG(boolean _createToken) |
void |
mCHAR_LITERAL(boolean _createToken) |
void |
mCOMMA(boolean _createToken) |
void |
mCOMMENT(boolean _createToken) |
protected void |
mCURLY_BLOCK_SCARF(boolean _createToken) |
protected void |
mDIGIT(boolean _createToken) |
protected void |
mELEMENT(boolean _createToken) |
protected void |
mESC(boolean _createToken) |
void |
mID_OR_KEYWORD(boolean _createToken)
This rule picks off keywords in the lexer that need to be
handled specially.
|
protected void |
mID(boolean _createToken) |
void |
mLPAREN(boolean _createToken) |
protected void |
mML_COMMENT(boolean _createToken) |
protected void |
mNEWLINE(boolean _createToken) |
void |
mRCURLY(boolean _createToken) |
void |
mRPAREN(boolean _createToken) |
void |
mRULE_BLOCK(boolean _createToken) |
void |
mSEMI(boolean _createToken) |
protected void |
mSL_COMMENT(boolean _createToken) |
void |
mSTRING_LITERAL(boolean _createToken) |
void |
mSUBRULE_BLOCK(boolean _createToken) |
void |
mWS(boolean _createToken) |
protected void |
mXDIGIT(boolean _createToken) |
Token |
nextToken() |
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, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public static final BitSet _tokenSet_4
public static final BitSet _tokenSet_5
public static final BitSet _tokenSet_6
public static final BitSet _tokenSet_7
public static final BitSet _tokenSet_8
public static final BitSet _tokenSet_9
public static final BitSet _tokenSet_10
public PreprocessorLexer(InputStream in)
public PreprocessorLexer(Reader in)
public PreprocessorLexer(InputBuffer ib)
public PreprocessorLexer(LexerSharedInputState state)
public Token nextToken() throws TokenStreamException
nextToken
in interface TokenStream
TokenStreamException
public final void mRULE_BLOCK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mALT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mSUBRULE_BLOCK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mCOMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mNEWLINE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mBANG(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mID_OR_KEYWORD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mID(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mCURLY_BLOCK_SCARF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mASSIGN_RHS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mSL_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mDIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mXDIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
public final void mARG_ACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException