compiler
Class asmppParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by compiler.asmppParser
All Implemented Interfaces:
asmppLexerTokenTypes

public class asmppParser
extends antlr.LLkParser
implements asmppLexerTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, 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
 
Constructor Summary
  asmppParser(antlr.ParserSharedInputState state)
           
  asmppParser(antlr.TokenBuffer tokenBuf)
           
protected asmppParser(antlr.TokenBuffer tokenBuf, int k)
           
  asmppParser(antlr.TokenStream lexer)
           
protected asmppParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void addffStatement()
           
 void addlwStatement()
           
 void addwffStatement()
           
 void addwfStatement()
           
 void andlwStatement()
           
 void andwffStatement()
           
 void andwfStatement()
           
 void arrayDecl()
           
 void asmppStatement()
           
 void asmStatement()
           
 void assignmentStatement()
           
 void basicDecl()
           
 void bcfStatement()
           
 void bsfStatement()
           
 void btfscStatement()
           
 void btfssStatement()
           
protected  void buildTokenTypeASTClassMap()
           
 void callStatement()
           
 void clrfStatement()
           
 void clrwdtStatement()
           
 void clrwStatement()
           
 void comfStatement()
           
 void constDecl()
           
 void decfStatement()
           
 void decfszStatement()
           
 void dowhileStatement()
           
 void expr()
           
 void forStatement()
           
protected  void forSubStatement()
           
 void funcDeclaration()
           
 void functioncallStatement()
           
 void gotoStatement()
           
 void ifStatement()
           
 void incfStatement()
           
 void incfszStatement()
           
 void instructionStatement()
           
 void iorlwStatement()
           
 void iorwffStatement()
           
 void iorwfStatement()
           
 void labelStatement()
           
 void movffStatement()
           
 void movfStatement()
           
 void movlwStatement()
           
 void movwfStatement()
           
 void nopStatement()
           
 void orgStatement()
           
 void program()
           
 void retfieStatement()
           
 void retlwStatement()
           
 void returnStatement()
           
 void rlfStatement()
           
 void rrfStatement()
           
 void sleepStatement()
           
 void statement()
           
 void subexpr()
           
 void subffStatement()
           
 void sublwStatement()
           
 void subprogramBody()
           
 void subwffStatement()
           
 void subwfStatement()
           
 void swapffStatement()
           
 void swapfStatement()
           
 void varDecl()
           
 void whileStatement()
           
 void xorlwStatement()
           
 void xorwffStatement()
           
 void xorwfStatement()
           
 
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
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_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 Detail

asmppParser

protected asmppParser(antlr.TokenBuffer tokenBuf,
                      int k)

asmppParser

public asmppParser(antlr.TokenBuffer tokenBuf)

asmppParser

protected asmppParser(antlr.TokenStream lexer,
                      int k)

asmppParser

public asmppParser(antlr.TokenStream lexer)

asmppParser

public asmppParser(antlr.ParserSharedInputState state)
Method Detail

program

public final void program()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subprogramBody

public final void 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

funcDeclaration

public final void funcDeclaration()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

statement

public final void statement()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

varDecl

public final void varDecl()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

arrayDecl

public final void arrayDecl()
                     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 void instructionStatement()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

orgStatement

public final void orgStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

ifStatement

public final void ifStatement()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

whileStatement

public final void whileStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

forStatement

public final void forStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

dowhileStatement

public final void dowhileStatement()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

assignmentStatement

public final void assignmentStatement()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functioncallStatement

public final void functioncallStatement()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

returnStatement

public final void returnStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

labelStatement

public final void labelStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

asmppStatement

public final void asmppStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

asmStatement

public final void asmStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

addffStatement

public final void addffStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subffStatement

public final void subffStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

addwffStatement

public final void addwffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subwffStatement

public final void subwffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

swapffStatement

public final void swapffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

iorwffStatement

public final void iorwffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

andwffStatement

public final void andwffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

xorwffStatement

public final void xorwffStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

movffStatement

public final void movffStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

addwfStatement

public final void addwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

andwfStatement

public final void andwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

clrfStatement

public final void clrfStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

clrwStatement

public final void clrwStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

comfStatement

public final void comfStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

decfStatement

public final void decfStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

decfszStatement

public final void decfszStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

incfStatement

public final void incfStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

incfszStatement

public final void incfszStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

iorwfStatement

public final void iorwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

movfStatement

public final void movfStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

movwfStatement

public final void movwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

nopStatement

public final void nopStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

rlfStatement

public final void rlfStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

rrfStatement

public final void rrfStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subwfStatement

public final void subwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

swapfStatement

public final void swapfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

xorwfStatement

public final void xorwfStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bcfStatement

public final void bcfStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bsfStatement

public final void bsfStatement()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

btfscStatement

public final void btfscStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

btfssStatement

public final void btfssStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

addlwStatement

public final void addlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

andlwStatement

public final void andlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

callStatement

public final void callStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

clrwdtStatement

public final void clrwdtStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

gotoStatement

public final void gotoStatement()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

iorlwStatement

public final void iorlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

movlwStatement

public final void movlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

retfieStatement

public final void retfieStatement()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

retlwStatement

public final void retlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sleepStatement

public final void sleepStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sublwStatement

public final void sublwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

xorlwStatement

public final void xorlwStatement()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

expr

public final void expr()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subexpr

public final void subexpr()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

forSubStatement

protected final void forSubStatement()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

buildTokenTypeASTClassMap

protected void buildTokenTypeASTClassMap()