assembler
Class asmParser
java.lang.Object
antlr.Parser
antlr.LLkParser
assembler.asmParser
- All Implemented Interfaces:
- asmLexerTokenTypes
public class asmParser
- extends antlr.LLkParser
- implements asmLexerTokenTypes
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface assembler.asmLexerTokenTypes |
ADDLW, ADDLWSTATEMENT, ADDRESS, ADDWF, ADDWFSTATEMENT, AND, ANDLW, ANDLWSTATEMENT, ANDWF, ANDWFSTATEMENT, ASMSTATEMENT, ASSIGN, BASICDECL, BCF, BCFSTATEMENT, BINARY, BSF, BSFSTATEMENT, BTFSC, BTFSCSTATEMENT, BTFSS, BTFSSSTATEMENT, CALL, CALLSTATEMENT, CLRF, CLRFSTATEMENT, CLRW, CLRWDT, CLRWDTSTATEMENT, CLRWSTATEMENT, COLON, COMF, COMFSTATEMENT, COMMA, COMMENT, CONSTDECL, DECF, DECFSTATEMENT, DECFSZ, DECFSZSTATEMENT, DECIMAL, DIGIT, END, EOF, EQ, EQU, GOTO, GOTOSTATEMENT, GT, GTE, HEX, IDENT, INCF, INCFSTATEMENT, INCFSZ, INCFSZSTATEMENT, INSTRUCTIONSTATEMENT, IORLW, IORLWSTATEMENT, IORWF, IORWFSTATEMENT, LABELSTATEMENT, LBRC, LCURLY, LETTER, LITERAL, LPAR, LT, LTE, MINUS, MOVF, 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, SUBLW, SUBLWSTATEMENT, SUBPROGRAMBODY, SUBWF, SUBWFSTATEMENT, SWAPF, SWAPFSTATEMENT, WS, XORLW, XORLWSTATEMENT, XORWF, XORWFSTATEMENT |
Constructor Summary |
|
asmParser(antlr.ParserSharedInputState state)
|
|
asmParser(antlr.TokenBuffer tokenBuf)
|
protected |
asmParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
asmParser(antlr.TokenStream lexer)
|
protected |
asmParser(antlr.TokenStream lexer,
int k)
|
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
asmParser
protected asmParser(antlr.TokenBuffer tokenBuf,
int k)
asmParser
public asmParser(antlr.TokenBuffer tokenBuf)
asmParser
protected asmParser(antlr.TokenStream lexer,
int k)
asmParser
public asmParser(antlr.TokenStream lexer)
asmParser
public asmParser(antlr.ParserSharedInputState state)
getCurrentLine
public int getCurrentLine()
setBreakPointLineNumbers
public void setBreakPointLineNumbers(java.util.ArrayList bPointLineNo)
convertBreakPoint
public void convertBreakPoint(int lineNumber)
showBreakPointLineNumbers
public void showBreakPointLineNumbers()
showBreakPointAddresses
public void showBreakPointAddresses()
getSTable
public asmParser.SymbolTable getSTable()
setSTable
public void setSTable(asmParser.SymbolTable sT)
Initialize
public void Initialize(int pNum)
str2int
public int str2int(java.lang.String str)
program
public final java.lang.String program()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
subprogramBody
public final java.lang.String subprogramBody()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
basicDecl
public final void basicDecl()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
statement
public final java.lang.String statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
constDecl
public final void constDecl()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
instructionStatement
public final java.lang.String instructionStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
orgStatement
public final java.lang.String orgStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
labelStatement
public final java.lang.String labelStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
asmStatement
public final java.lang.String asmStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
addwfStatement
public final java.lang.String addwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
andwfStatement
public final java.lang.String andwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
clrfStatement
public final java.lang.String clrfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
clrwStatement
public final java.lang.String clrwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
comfStatement
public final java.lang.String comfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
decfStatement
public final java.lang.String decfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
decfszStatement
public final java.lang.String decfszStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
incfStatement
public final java.lang.String incfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
incfszStatement
public final java.lang.String incfszStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
iorwfStatement
public final java.lang.String iorwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
movfStatement
public final java.lang.String movfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
movwfStatement
public final java.lang.String movwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
nopStatement
public final java.lang.String nopStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
rlfStatement
public final java.lang.String rlfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
rrfStatement
public final java.lang.String rrfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
subwfStatement
public final java.lang.String subwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
swapfStatement
public final java.lang.String swapfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
xorwfStatement
public final java.lang.String xorwfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
bcfStatement
public final java.lang.String bcfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
bsfStatement
public final java.lang.String bsfStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
btfscStatement
public final java.lang.String btfscStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
btfssStatement
public final java.lang.String btfssStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
addlwStatement
public final java.lang.String addlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
andlwStatement
public final java.lang.String andlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
callStatement
public final java.lang.String callStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
clrwdtStatement
public final java.lang.String clrwdtStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
gotoStatement
public final java.lang.String gotoStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
iorlwStatement
public final java.lang.String iorlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
movlwStatement
public final java.lang.String movlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
retfieStatement
public final java.lang.String retfieStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
retlwStatement
public final java.lang.String retlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
returnStatement
public final java.lang.String returnStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sleepStatement
public final java.lang.String sleepStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sublwStatement
public final java.lang.String sublwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
xorlwStatement
public final java.lang.String xorlwStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()