compiler
Class TreeWalker

java.lang.Object
  extended by antlr.TreeParser
      extended by compiler.TreeWalker
All Implemented Interfaces:
asmppLexerTokenTypes

public class TreeWalker
extends antlr.TreeParser
implements asmppLexerTokenTypes


Nested Class Summary
 class TreeWalker.Symbol
           
 class TreeWalker.SymbolTable
           
 
Field Summary
static java.lang.String[] _tokenNames
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, 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
TreeWalker()
           
 
Method Summary
 java.lang.String addffStatement(antlr.collections.AST _t)
           
 java.lang.String addlwStatement(antlr.collections.AST _t)
           
 java.lang.String addwffStatement(antlr.collections.AST _t)
           
 java.lang.String addwfStatement(antlr.collections.AST _t)
           
 java.lang.String andlwStatement(antlr.collections.AST _t)
           
 java.lang.String andwffStatement(antlr.collections.AST _t)
           
 java.lang.String andwfStatement(antlr.collections.AST _t)
           
 java.lang.String arrayDecl(antlr.collections.AST _t)
           
 java.lang.String asmppStatement(antlr.collections.AST _t)
           
 java.lang.String asmStatement(antlr.collections.AST _t)
           
 java.lang.String assignmentStatement(antlr.collections.AST _t)
           
 java.lang.String basicDecl(antlr.collections.AST _t)
           
 java.lang.String bcfStatement(antlr.collections.AST _t)
           
 java.lang.String bsfStatement(antlr.collections.AST _t)
           
 java.lang.String btfscStatement(antlr.collections.AST _t)
           
 java.lang.String btfssStatement(antlr.collections.AST _t)
           
 java.lang.String callStatement(antlr.collections.AST _t)
           
 java.lang.String clrfStatement(antlr.collections.AST _t)
           
 java.lang.String clrwdtStatement(antlr.collections.AST _t)
           
 java.lang.String clrwStatement(antlr.collections.AST _t)
           
 java.lang.String comfStatement(antlr.collections.AST _t)
           
 java.lang.String constDecl(antlr.collections.AST _t)
           
 java.lang.String decfStatement(antlr.collections.AST _t)
           
 java.lang.String decfszStatement(antlr.collections.AST _t)
           
 java.lang.String dowhileStatement(antlr.collections.AST _t)
           
 java.lang.String expr(antlr.collections.AST _t)
           
 java.lang.String forStatement(antlr.collections.AST _t)
           
 java.lang.String forSubStatement(antlr.collections.AST _t)
           
 java.lang.String funcDeclaration(antlr.collections.AST _t)
           
 java.lang.String functioncallStatement(antlr.collections.AST _t)
           
 TreeWalker.SymbolTable getSTable()
           
 java.lang.String gotoStatement(antlr.collections.AST _t)
           
 java.lang.String ifStatement(antlr.collections.AST _t)
           
 java.lang.String incfStatement(antlr.collections.AST _t)
           
 java.lang.String incfszStatement(antlr.collections.AST _t)
           
 void Initialize(int pNum)
           
 java.lang.String instructionStatement(antlr.collections.AST _t)
           
 java.lang.String iorlwStatement(antlr.collections.AST _t)
           
 java.lang.String iorwffStatement(antlr.collections.AST _t)
           
 java.lang.String iorwfStatement(antlr.collections.AST _t)
           
 java.lang.String labelStatement(antlr.collections.AST _t)
           
 java.lang.String movffStatement(antlr.collections.AST _t)
           
 java.lang.String movfStatement(antlr.collections.AST _t)
           
 java.lang.String movlwStatement(antlr.collections.AST _t)
           
 java.lang.String movwfStatement(antlr.collections.AST _t)
           
 java.lang.String nopStatement(antlr.collections.AST _t)
           
 java.lang.String orgStatement(antlr.collections.AST _t)
           
 java.lang.String program(antlr.collections.AST _t)
           
 java.lang.String retfieStatement(antlr.collections.AST _t)
           
 java.lang.String retlwStatement(antlr.collections.AST _t)
           
 java.lang.String returnStatement(antlr.collections.AST _t)
           
 java.lang.String rlfStatement(antlr.collections.AST _t)
           
 java.lang.String rrfStatement(antlr.collections.AST _t)
           
 void setSTable(TreeWalker.SymbolTable sT)
           
 java.lang.String sleepStatement(antlr.collections.AST _t)
           
 java.lang.String statement(antlr.collections.AST _t)
           
 int str2int(java.lang.String str)
           
 java.lang.String subexpr(antlr.collections.AST _t)
           
 java.lang.String subffStatement(antlr.collections.AST _t)
           
 java.lang.String sublwStatement(antlr.collections.AST _t)
           
 java.lang.String subprogramBody(antlr.collections.AST _t)
           
 java.lang.String subwffStatement(antlr.collections.AST _t)
           
 java.lang.String subwfStatement(antlr.collections.AST _t)
           
 java.lang.String swapffStatement(antlr.collections.AST _t)
           
 java.lang.String swapfStatement(antlr.collections.AST _t)
           
 java.lang.String varDecl(antlr.collections.AST _t)
           
 java.lang.String whileStatement(antlr.collections.AST _t)
           
 java.lang.String xorlwStatement(antlr.collections.AST _t)
           
 java.lang.String xorwffStatement(antlr.collections.AST _t)
           
 java.lang.String xorwfStatement(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
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
Constructor Detail

TreeWalker

public TreeWalker()
Method Detail

getSTable

public TreeWalker.SymbolTable getSTable()

setSTable

public void setSTable(TreeWalker.SymbolTable sT)

Initialize

public void Initialize(int pNum)

str2int

public int str2int(java.lang.String str)

program

public final java.lang.String program(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subprogramBody

public final java.lang.String subprogramBody(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

basicDecl

public final java.lang.String basicDecl(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

funcDeclaration

public final java.lang.String funcDeclaration(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

statement

public final java.lang.String statement(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

arrayDecl

public final java.lang.String arrayDecl(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

varDecl

public final java.lang.String varDecl(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException

constDecl

public final java.lang.String constDecl(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

instructionStatement

public final java.lang.String instructionStatement(antlr.collections.AST _t)
                                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

orgStatement

public final java.lang.String orgStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

ifStatement

public final java.lang.String ifStatement(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

whileStatement

public final java.lang.String whileStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

forStatement

public final java.lang.String forStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

dowhileStatement

public final java.lang.String dowhileStatement(antlr.collections.AST _t)
                                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

assignmentStatement

public final java.lang.String assignmentStatement(antlr.collections.AST _t)
                                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functioncallStatement

public final java.lang.String functioncallStatement(antlr.collections.AST _t)
                                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

returnStatement

public final java.lang.String returnStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

labelStatement

public final java.lang.String labelStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

asmppStatement

public final java.lang.String asmppStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

asmStatement

public final java.lang.String asmStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

addffStatement

public final java.lang.String addffStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subffStatement

public final java.lang.String subffStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

addwffStatement

public final java.lang.String addwffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subwffStatement

public final java.lang.String subwffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

swapffStatement

public final java.lang.String swapffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

iorwffStatement

public final java.lang.String iorwffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

andwffStatement

public final java.lang.String andwffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

xorwffStatement

public final java.lang.String xorwffStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

movffStatement

public final java.lang.String movffStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

addwfStatement

public final java.lang.String addwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

andwfStatement

public final java.lang.String andwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

clrfStatement

public final java.lang.String clrfStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

clrwStatement

public final java.lang.String clrwStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

comfStatement

public final java.lang.String comfStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

decfStatement

public final java.lang.String decfStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

decfszStatement

public final java.lang.String decfszStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

incfStatement

public final java.lang.String incfStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

incfszStatement

public final java.lang.String incfszStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

iorwfStatement

public final java.lang.String iorwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

movfStatement

public final java.lang.String movfStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

movwfStatement

public final java.lang.String movwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

nopStatement

public final java.lang.String nopStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

rlfStatement

public final java.lang.String rlfStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

rrfStatement

public final java.lang.String rrfStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subwfStatement

public final java.lang.String subwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

swapfStatement

public final java.lang.String swapfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

xorwfStatement

public final java.lang.String xorwfStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

bcfStatement

public final java.lang.String bcfStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

bsfStatement

public final java.lang.String bsfStatement(antlr.collections.AST _t)
                                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

btfscStatement

public final java.lang.String btfscStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

btfssStatement

public final java.lang.String btfssStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

addlwStatement

public final java.lang.String addlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

andlwStatement

public final java.lang.String andlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

callStatement

public final java.lang.String callStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

clrwdtStatement

public final java.lang.String clrwdtStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

gotoStatement

public final java.lang.String gotoStatement(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

iorlwStatement

public final java.lang.String iorlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

movlwStatement

public final java.lang.String movlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

retfieStatement

public final java.lang.String retfieStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

retlwStatement

public final java.lang.String retlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

sleepStatement

public final java.lang.String sleepStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

sublwStatement

public final java.lang.String sublwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

xorlwStatement

public final java.lang.String xorlwStatement(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

expr

public final java.lang.String expr(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subexpr

public final java.lang.String subexpr(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException

forSubStatement

public final java.lang.String forSubStatement(antlr.collections.AST _t)
                                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException