Package org.antlr.grammar.v2
Class ANTLRLexer
java.lang.Object
antlr.CharScanner
org.antlr.grammar.v2.ANTLRLexer
- All Implemented Interfaces:
antlr.TokenStream
,ANTLRTokenTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
static final antlr.collections.impl.BitSet
boolean
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
Fields inherited from interface org.antlr.grammar.v2.ANTLRTokenTypes
ACTION, ACTION_CHAR_LITERAL, ACTION_ESC, ACTION_STRING_LITERAL, ALT, AMPERSAND, ARG, ARG_ACTION, ARGLIST, ASSIGN, BACKTRACK_SEMPRED, BANG, BLOCK, CHAR_LITERAL, CHAR_RANGE, CLOSE_ELEMENT_OPTION, CLOSURE, COLON, COMBINED_GRAMMAR, COMMA, COMMENT, DIGIT, DOC_COMMENT, DOLLAR, DOT, DOUBLE_ANGLE_STRING_LITERAL, DOUBLE_QUOTE_STRING_LITERAL, EOA, EOB, EOF, EOR, EPSILON, ESC, ETC, FORCED_ACTION, FRAGMENT, GATED_SEMPRED, ID, IMPLIES, IMPORT, INITACTION, INT, INTERNAL_RULE_REF, LABEL, LEXER, LEXER_GRAMMAR, LITERAL_catch, LITERAL_finally, LITERAL_grammar, LITERAL_lexer, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tree, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONAL, OPTIONS, OR, PARSER, PARSER_GRAMMAR, PLUS, PLUS_ASSIGN, POSITIVE_CLOSURE, QUESTION, RANGE, RCURLY, RET, REWRITE, ROOT, RPAREN, RULE, RULE_REF, SCOPE, SEMI, SEMPRED, SL_COMMENT, SRC, STAR, STRAY_BRACKET, STRING_LITERAL, SYN_SEMPRED, SYNPRED, TEMPLATE, TOKEN_REF, TOKENS, TREE_BEGIN, TREE_GRAMMAR, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT
-
Constructor Summary
ConstructorsConstructorDescriptionANTLRLexer
(antlr.InputBuffer ib) ANTLRLexer
(antlr.LexerSharedInputState state) ANTLRLexer
(Reader in) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
mACTION
(boolean _createToken) protected final void
mACTION_CHAR_LITERAL
(boolean _createToken) protected final void
mACTION_ESC
(boolean _createToken) protected final void
mACTION_STRING_LITERAL
(boolean _createToken) final void
mAMPERSAND
(boolean _createToken) final void
mARG_ACTION
(boolean _createToken) final void
mASSIGN
(boolean _createToken) final void
mBANG
(boolean _createToken) final void
mCHAR_LITERAL
(boolean _createToken) final void
mCLOSE_ELEMENT_OPTION
(boolean _createToken) final void
mCOLON
(boolean _createToken) final void
mCOMMA
(boolean _createToken) final void
mCOMMENT
(boolean _createToken) protected final void
mDIGIT
(boolean _createToken) final void
mDOLLAR
(boolean _createToken) final void
mDOUBLE_ANGLE_STRING_LITERAL
(boolean _createToken) final void
mDOUBLE_QUOTE_STRING_LITERAL
(boolean _createToken) protected final void
mESC
(boolean _createToken) final void
mETC
(boolean _createToken) final void
mIMPLIES
(boolean _createToken) final void
mINT
(boolean _createToken) protected final int
mINTERNAL_RULE_REF
(boolean _createToken) private static final long[]
private static final long[]
private static final long[]
private static final long[]
private static final long[]
private static final long[]
private static final long[]
private static final long[]
private static final long[]
final void
mLPAREN
(boolean _createToken) protected final void
mML_COMMENT
(boolean _createToken) protected final void
mNESTED_ACTION
(boolean _createToken) protected final void
mNESTED_ARG_ACTION
(boolean _createToken) final void
mNOT
(boolean _createToken) final void
mOPEN_ELEMENT_OPTION
(boolean _createToken) final void
mOR
(boolean _createToken) final void
mPLUS
(boolean _createToken) final void
mPLUS_ASSIGN
(boolean _createToken) final void
mQUESTION
(boolean _createToken) final void
mRANGE
(boolean _createToken) final void
mRCURLY
(boolean _createToken) final void
mREWRITE
(boolean _createToken) final void
mROOT
(boolean _createToken) final void
mRPAREN
(boolean _createToken) final void
mRULE_REF
(boolean _createToken) final void
mSEMI
(boolean _createToken) protected final void
mSL_COMMENT
(boolean _createToken) protected final void
mSRC
(boolean _createToken) Reset the file and line information; useful when the grammar has been generated so that errors are shown relative to the original file like the old C preprocessor used to do.final void
mSTAR
(boolean _createToken) final void
mSTRAY_BRACKET
(boolean _createToken) final void
mTOKEN_REF
(boolean _createToken) final void
mTREE_BEGIN
(boolean _createToken) final void
mWILDCARD
(boolean _createToken) final void
mWS
(boolean _createToken) protected final void
mWS_LOOP
(boolean _createToken) protected final void
mWS_OPT
(boolean _createToken) protected final void
mXDIGIT
(boolean _createToken) antlr.Token
void
tab()
advance the current column number by one; don't do tabs.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, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
-
Field Details
-
hasASTOperator
public boolean hasASTOperator -
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0 -
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1 -
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2 -
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3 -
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4 -
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5 -
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6 -
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7 -
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
-
-
Constructor Details
-
ANTLRLexer
-
ANTLRLexer
-
ANTLRLexer
public ANTLRLexer(antlr.InputBuffer ib)
-
-
Method Details
-
tab
public void tab()advance the current column number by one; don't do tabs. we want char position in line to be sent to AntlrWorks.- Overrides:
tab
in classantlr.CharScanner
-
nextToken
public antlr.Token nextToken() throws antlr.TokenStreamException- Specified by:
nextToken
in interfaceantlr.TokenStream
- Throws:
antlr.TokenStreamException
-
mWS
public final void mWS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mCOMMENT
public final void mCOMMENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mSL_COMMENT
protected final void mSL_COMMENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mML_COMMENT
protected final void mML_COMMENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mSRC
protected final void mSRC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException Reset the file and line information; useful when the grammar has been generated so that errors are shown relative to the original file like the old C preprocessor used to do.- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mOPEN_ELEMENT_OPTION
public final void mOPEN_ELEMENT_OPTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mCLOSE_ELEMENT_OPTION
public final void mCLOSE_ELEMENT_OPTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mAMPERSAND
public final void mAMPERSAND(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mCOMMA
public final void mCOMMA(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mQUESTION
public final void mQUESTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mTREE_BEGIN
public final void mTREE_BEGIN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mLPAREN
public final void mLPAREN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mRPAREN
public final void mRPAREN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mCOLON
public final void mCOLON(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mSTAR
public final void mSTAR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mPLUS
public final void mPLUS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mASSIGN
public final void mASSIGN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mPLUS_ASSIGN
public final void mPLUS_ASSIGN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mIMPLIES
public final void mIMPLIES(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mREWRITE
public final void mREWRITE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mSEMI
public final void mSEMI(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mROOT
public final void mROOT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mBANG
public final void mBANG(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mOR
public final void mOR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mWILDCARD
public final void mWILDCARD(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mETC
public final void mETC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mRANGE
public final void mRANGE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mNOT
public final void mNOT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mRCURLY
public final void mRCURLY(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mDOLLAR
public final void mDOLLAR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mSTRAY_BRACKET
public final void mSTRAY_BRACKET(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mCHAR_LITERAL
public final void mCHAR_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mESC
protected final void mESC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mDOUBLE_QUOTE_STRING_LITERAL
public final void mDOUBLE_QUOTE_STRING_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mDOUBLE_ANGLE_STRING_LITERAL
public final void mDOUBLE_ANGLE_STRING_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mXDIGIT
protected final void mXDIGIT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mDIGIT
protected final void mDIGIT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mINT
public final void mINT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mARG_ACTION
public final void mARG_ACTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mNESTED_ARG_ACTION
protected final void mNESTED_ARG_ACTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mACTION_STRING_LITERAL
protected final void mACTION_STRING_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mACTION_CHAR_LITERAL
protected final void mACTION_CHAR_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mACTION
public final void mACTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mNESTED_ACTION
protected final void mNESTED_ACTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mACTION_ESC
protected final void mACTION_ESC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mTOKEN_REF
public final void mTOKEN_REF(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mRULE_REF
public final void mRULE_REF(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mINTERNAL_RULE_REF
protected final int mINTERNAL_RULE_REF(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mWS_LOOP
protected final void mWS_LOOP(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mWS_OPT
protected final void mWS_OPT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
-
mk_tokenSet_0
private static final long[] mk_tokenSet_0() -
mk_tokenSet_1
private static final long[] mk_tokenSet_1() -
mk_tokenSet_2
private static final long[] mk_tokenSet_2() -
mk_tokenSet_3
private static final long[] mk_tokenSet_3() -
mk_tokenSet_4
private static final long[] mk_tokenSet_4() -
mk_tokenSet_5
private static final long[] mk_tokenSet_5() -
mk_tokenSet_6
private static final long[] mk_tokenSet_6() -
mk_tokenSet_7
private static final long[] mk_tokenSet_7() -
mk_tokenSet_8
private static final long[] mk_tokenSet_8()
-