compiler
Class asmppLexer
java.lang.Object
antlr.CharScanner
compiler.asmppLexer
- All Implemented Interfaces:
- antlr.TokenStream, asmppLexerTokenTypes
public class asmppLexer
- extends antlr.CharScanner
- implements asmppLexerTokenTypes, antlr.TokenStream
Fields inherited from class antlr.CharScanner |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth |
Fields inherited from interface compiler.asmppLexerTokenTypes |
ADDFF, ADDFFSTATEMENT, ADDLW, ADDLWSTATEMENT, ADDRESS, ADDWF, ADDWFF, ADDWFFSTATEMENT, ADDWFSTATEMENT, AND, ANDLW, ANDLWSTATEMENT, ANDWF, ANDWFF, ANDWFFSTATEMENT, ANDWFSTATEMENT, ARRAY, ARRAYDECL, ASMPPSTATEMENT, ASMSTATEMENT, ASSIGN, ASSIGNMENTSTATEMENT, BASICDECL, BCF, BCFSTATEMENT, BEGIN, BINARY, BREAK, BSF, BSFSTATEMENT, BTFSC, BTFSCSTATEMENT, BTFSS, BTFSSSTATEMENT, CALL, CALLSTATEMENT, CLRF, CLRFSTATEMENT, CLRW, CLRWDT, CLRWDTSTATEMENT, CLRWSTATEMENT, COLON, COMF, COMFSTATEMENT, COMMA, COMMENT, CONSTDECL, CONTINUE, DECF, DECFSTATEMENT, DECFSZ, DECFSZSTATEMENT, DECIMAL, DIGIT, DO, DOWHILESTATEMENT, ELSE, END, ENDIF, EOF, EQ, EQU, EXPR, FOR, FORSTATEMENT, FORSUBSTATEMENT, FUNCTION, FUNCTIONCALLSTATEMENT, FUNCTIONDECLARATION, GOTO, GOTOSTATEMENT, GT, GTE, HEX, IDENT, IF, IFSTATEMENT, INCF, INCFSTATEMENT, INCFSZ, INCFSZSTATEMENT, INSTRUCTIONSTATEMENT, IORLW, IORLWSTATEMENT, IORWF, IORWFF, IORWFFSTATEMENT, IORWFSTATEMENT, LABELSTATEMENT, LBRC, LCURLY, LETTER, LITERAL, LPAR, LT, LTE, MINUS, MOVF, MOVFF, MOVFFSTATEMENT, MOVFSTATEMENT, MOVLW, MOVLWSTATEMENT, MOVWF, MOVWFSTATEMENT, NEQ, NEWLINE, NOP, NOPSTATEMENT, NULL_TREE_LOOKAHEAD, NUMBER, OR, ORG, ORGSTATEMENT, PLUS, PROGRAM, RBRC, RCURLY, RETFIE, RETFIESTATEMENT, RETLW, RETLWSTATEMENT, RETURN, RETURNSTATEMENT, RLF, RLFSTATEMENT, RPAR, RRF, RRFSTATEMENT, SEMI, SLEEP, SLEEPSTATEMENT, STATEMENT, SUBEXPR, SUBFF, SUBFFSTATEMENT, SUBLW, SUBLWSTATEMENT, SUBPROGRAMBODY, SUBWF, SUBWFF, SUBWFFSTATEMENT, SUBWFSTATEMENT, SWAPF, SWAPFF, SWAPFFSTATEMENT, SWAPFSTATEMENT, VAR, VARDECL, WHILE, WHILESTATEMENT, WS, XORLW, XORLWSTATEMENT, XORWF, XORWFF, XORWFFSTATEMENT, XORWFSTATEMENT |
Method Summary |
static void |
compile(java.lang.String fileName)
|
void |
mADDRESS(boolean _createToken)
|
static void |
main(java.lang.String[] args)
|
void |
mAND(boolean _createToken)
|
void |
mASSIGN(boolean _createToken)
|
protected void |
mBINARY(boolean _createToken)
|
void |
mCOLON(boolean _createToken)
|
void |
mCOMMA(boolean _createToken)
|
void |
mCOMMENT(boolean _createToken)
|
protected void |
mDECIMAL(boolean _createToken)
|
protected void |
mDIGIT(boolean _createToken)
|
void |
mEQ(boolean _createToken)
|
void |
mGT(boolean _createToken)
|
void |
mGTE(boolean _createToken)
|
protected void |
mHEX(boolean _createToken)
|
protected void |
mIDENT(boolean _createToken)
|
void |
mLBRC(boolean _createToken)
|
void |
mLCURLY(boolean _createToken)
|
protected void |
mLETTER(boolean _createToken)
|
void |
mLITERAL(boolean _createToken)
|
void |
mLPAR(boolean _createToken)
|
void |
mLT(boolean _createToken)
|
void |
mLTE(boolean _createToken)
|
void |
mMINUS(boolean _createToken)
|
void |
mNEQ(boolean _createToken)
|
void |
mNEWLINE(boolean _createToken)
|
void |
mNUMBER(boolean _createToken)
|
void |
mOR(boolean _createToken)
|
void |
mPLUS(boolean _createToken)
|
void |
mRBRC(boolean _createToken)
|
void |
mRCURLY(boolean _createToken)
|
void |
mRPAR(boolean _createToken)
|
void |
mSEMI(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
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
asmppLexer
public asmppLexer(java.io.InputStream in)
asmppLexer
public asmppLexer(java.io.Reader in)
asmppLexer
public asmppLexer(antlr.InputBuffer ib)
asmppLexer
public asmppLexer(antlr.LexerSharedInputState state)
main
public static void main(java.lang.String[] args)
compile
public static void compile(java.lang.String fileName)
nextToken
public antlr.Token nextToken()
throws antlr.TokenStreamException
- Specified by:
nextToken
in interface antlr.TokenStream
- Throws:
antlr.TokenStreamException
mNEWLINE
public final void mNEWLINE(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
mCOMMENT
public final void mCOMMENT(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
mLCURLY
public final void mLCURLY(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
mLPAR
public final void mLPAR(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
mCOMMA
public final void mCOMMA(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLBRC
public final void mLBRC(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mRBRC
public final void mRBRC(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
mASSIGN
public final void mASSIGN(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
mAND
public final void mAND(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
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
mLT
public final void mLT(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
mLTE
public final void mLTE(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mGTE
public final void mGTE(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
mDECIMAL
protected final void mDECIMAL(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mBINARY
protected final void mBINARY(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mHEX
protected final void mHEX(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mIDENT
protected final void mIDENT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLETTER
protected final void mLETTER(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
mADDRESS
public final void mADDRESS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mLITERAL
public final void mLITERAL(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException