csheets.core.formula.compiler
Class FormulaLexer
java.lang.Object
antlr.CharScanner
csheets.core.formula.compiler.FormulaLexer
- All Implemented Interfaces:
- antlr.TokenStream, FormulaParserTokenTypes
public class FormulaLexer
- extends antlr.CharScanner
- implements FormulaParserTokenTypes, antlr.TokenStream
A lexer that splits a string into a list of lexical tokens.
- Author:
- Einar Pehrson
| Fields inherited from class antlr.CharScanner |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth |
| Fields inherited from interface csheets.core.formula.compiler.FormulaParserTokenTypes |
ABS, ALPHABETICAL, AMP, CELL_REF, COLON, COMMA, DIGIT, DIV, EOF, EQ, EXCL, FUNCTION, GT, GTEQ, LETTER, LPAR, LT, LTEQ, MINUS, MULTI, NAME, NEQ, NULL_TREE_LOOKAHEAD, NUMBER, PERCENT, PLUS, POWER, QUOT, RPAR, SEMI, STRING, WS |
|
Method Summary |
protected void |
mABS(boolean _createToken)
|
void |
mALPHABETICAL(boolean _createToken)
|
void |
mAMP(boolean _createToken)
|
void |
mCOLON(boolean _createToken)
|
void |
mCOMMA(boolean _createToken)
|
protected void |
mDIGIT(boolean _createToken)
|
void |
mDIV(boolean _createToken)
|
void |
mEQ(boolean _createToken)
|
protected void |
mEXCL(boolean _createToken)
|
void |
mGT(boolean _createToken)
|
void |
mGTEQ(boolean _createToken)
|
protected void |
mLETTER(boolean _createToken)
|
void |
mLPAR(boolean _createToken)
|
void |
mLT(boolean _createToken)
|
void |
mLTEQ(boolean _createToken)
|
void |
mMINUS(boolean _createToken)
|
void |
mMULTI(boolean _createToken)
|
void |
mNEQ(boolean _createToken)
|
void |
mNUMBER(boolean _createToken)
|
void |
mPERCENT(boolean _createToken)
|
void |
mPLUS(boolean _createToken)
|
void |
mPOWER(boolean _createToken)
|
protected void |
mQUOT(boolean _createToken)
|
void |
mRPAR(boolean _createToken)
|
void |
mSEMI(boolean _createToken)
|
void |
mSTRING(boolean _createToken)
|
void |
mWS(boolean _createToken)
|
antlr.Token |
nextToken()
|
| 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, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
FormulaLexer
public FormulaLexer(InputStream in)
FormulaLexer
public FormulaLexer(Reader in)
FormulaLexer
public FormulaLexer(antlr.InputBuffer ib)
FormulaLexer
public FormulaLexer(antlr.LexerSharedInputState state)
nextToken
public antlr.Token nextToken()
throws antlr.TokenStreamException
- Specified by:
nextToken in interface antlr.TokenStream
- Throws:
antlr.TokenStreamException
mLETTER
protected final void mLETTER(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mALPHABETICAL
public final void mALPHABETICAL(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLPAR
public final void mLPAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mABS
protected final void mABS(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
mSTRING
public final void mSTRING(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mQUOT
protected final void mQUOT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mNUMBER
public final void mNUMBER(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
mEQ
public final void mEQ(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mNEQ
public final void mNEQ(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLTEQ
public final void mLTEQ(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mGTEQ
public final void mGTEQ(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mGT
public final void mGT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLT
public final void mLT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mAMP
public final void mAMP(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
mMINUS
public final void mMINUS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mMULTI
public final void mMULTI(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mDIV
public final void mDIV(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mPOWER
public final void mPOWER(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mPERCENT
public final void mPERCENT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mEXCL
protected final void mEXCL(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
mSEMI
public final void mSEMI(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mRPAR
public final void mRPAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mWS
public final void mWS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException