avrora.syntax.objdump
Class ObjDumpParser

java.lang.Object
  extended byavrora.syntax.AbstractParser
      extended byavrora.syntax.objdump.ObjDumpParser
All Implemented Interfaces:
ObjDumpParserConstants

public class ObjDumpParser
extends AbstractParser
implements ObjDumpParserConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
protected  RawModule rawModule
           
 Token token
           
 ObjDumpParserTokenManager token_source
           
 
Fields inherited from class avrora.syntax.AbstractParser
module
 
Fields inherited from interface avrora.syntax.objdump.ObjDumpParserConstants
ADC, ADD, ADDRESS, ADIW, AND, ANDI, ASR, BCLR, BIN_LITERAL, BLD, BRBC, BRBS, BRCC, BRCS, BREAK, BREQ, BRGE, BRHC, BRHS, BRID, BRIE, BRLO, BRLT, BRMI, BRNE, BRPL, BRSH, BRTC, BRTS, BRVC, BRVS, BSET, BST, BYTE2, BYTE3, BYTE4, CALL, CBI, CBR, CHARACTER_LITERAL, CLC, CLH, CLI, CLN, CLR, CLS, CLT, CLV, CLZ, COM, CP, CPC, CPI, CPSE, DEC, DECIMAL_LITERAL, DEFAULT, DIGIT, DOT_IDENTIFIER, EICALL, EIJMP, ELPM, EOF, EOR, EXP2, FMUL, FMULS, FMULSU, HEX_LITERAL, HIGH, HWRD, ICALL, IDENTIFIER, IJMP, IN, IN_SINGLE_LINE_COMMENT, INC, INTEGER_LITERAL, JMP, LABEL, LD, LDD, LDI, LDS, LETTER, LMA, LOG2, LOW, LPM, LSL, LSR, LWRD, MOV, MOVW, MUL, MULS, MULSU, NEG, NOP, OCTAL_LITERAL, OFFSET, OR, ORI, OUT, PAGE, POP, PROGRAM, PUSH, RCALL, RET, RETI, RJMP, ROL, ROR, SBC, SBCI, SBI, SBIC, SBIS, SBIW, SBR, SBRC, SBRS, SEC, SECTION, SEH, SEI, SEN, SER, SES, SET, SEV, SEZ, SINGLE_LINE_COMMENT, SIZE, SLEEP, SPM, ST, START, STD, STRING_LITERAL, STS, SUB, SUBI, SWAP, tokenImage, TST, VMA, WDR, WORD
 
Constructor Summary
ObjDumpParser(java.io.InputStream stream)
           
ObjDumpParser(java.io.InputStream stream, RawModule m, java.lang.String fname)
           
ObjDumpParser(ObjDumpParserTokenManager tm)
           
ObjDumpParser(java.io.Reader stream)
           
ObjDumpParser(java.io.Reader stream, RawModule m, java.lang.String fname)
           
 
Method Summary
 Token BinOp()
           
 SyntacticOperand.Expr Const()
           
 void Data()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void Header()
           
 void InstrBARE()
           
 void InstrGPR()
           
 void InstrGPRGPR()
           
 void InstrGPRIMM()
           
 void InstrIMM()
           
 void InstrIMMIMM()
           
 void InstrInput()
           
 void InstrLD_variant()
           
 void InstrLD()
           
 void InstrLDD()
           
 void InstrLDI()
           
 void InstrLDPD()
           
 void InstrLDPI()
           
 void InstrLDS()
           
 void InstrLoad()
           
 void InstrLPM_variant()
           
 void InstrLPMBARE()
           
 void InstrLPMGPRGPR()
           
 void InstrLPMGPRGPRP()
           
 void InstrOutput()
           
 void InstrST_variant()
           
 void InstrST()
           
 void InstrSTD()
           
 void InstrStore()
           
 void InstrSTPD()
           
 void InstrSTPI()
           
 void InstrSTS()
           
 void Instruction()
           
 void Item()
           
 void Label()
           
 void Module()
          The Module() method causes the parser to begin parsing the module.
 Token OpcodeGPR()
           
 Token OpcodeGPRGPR()
           
 Token OpcodeGPRIMM()
           
 Token OpcodeIMM()
           
 Token OpcodeIMMIMM()
           
 Token OpcodeLPM()
           
 void Property()
           
 void Raw2()
           
 void Raw4()
           
 void RawData()
           
 SyntacticOperand.Register Register()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.InputStream stream, RawModule m, java.lang.String fname)
           
 void ReInit(ObjDumpParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(java.io.Reader stream, RawModule m, java.lang.String fname)
           
 Expr RelExpr()
           
 void Section()
           
 void SectionDecl()
           
 void Statement()
           
 Expr Term()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rawModule

protected RawModule rawModule

token_source

public ObjDumpParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

ObjDumpParser

public ObjDumpParser(java.io.InputStream stream,
                     RawModule m,
                     java.lang.String fname)

ObjDumpParser

public ObjDumpParser(java.io.Reader stream,
                     RawModule m,
                     java.lang.String fname)

ObjDumpParser

public ObjDumpParser(java.io.InputStream stream)

ObjDumpParser

public ObjDumpParser(java.io.Reader stream)

ObjDumpParser

public ObjDumpParser(ObjDumpParserTokenManager tm)
Method Detail

ReInit

public void ReInit(java.io.InputStream stream,
                   RawModule m,
                   java.lang.String fname)

ReInit

public void ReInit(java.io.Reader stream,
                   RawModule m,
                   java.lang.String fname)

Module

public final void Module()
                  throws ParseException
Description copied from class: AbstractParser
The Module() method causes the parser to begin parsing the module.

Specified by:
Module in class AbstractParser
Throws:
ParseException

Header

public final void Header()
                  throws ParseException
Throws:
ParseException

SectionDecl

public final void SectionDecl()
                       throws ParseException
Throws:
ParseException

Property

public final void Property()
                    throws ParseException
Throws:
ParseException

Section

public final void Section()
                   throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

Item

public final void Item()
                throws ParseException
Throws:
ParseException

RawData

public final void RawData()
                   throws ParseException
Throws:
ParseException

Raw2

public final void Raw2()
                throws ParseException
Throws:
ParseException

Raw4

public final void Raw4()
                throws ParseException
Throws:
ParseException

Instruction

public final void Instruction()
                       throws ParseException
Throws:
ParseException

Data

public final void Data()
                throws ParseException
Throws:
ParseException

InstrGPRGPR

public final void InstrGPRGPR()
                       throws ParseException
Throws:
ParseException

OpcodeGPRGPR

public final Token OpcodeGPRGPR()
                         throws ParseException
Throws:
ParseException

InstrGPR

public final void InstrGPR()
                    throws ParseException
Throws:
ParseException

OpcodeGPR

public final Token OpcodeGPR()
                      throws ParseException
Throws:
ParseException

InstrGPRIMM

public final void InstrGPRIMM()
                       throws ParseException
Throws:
ParseException

OpcodeGPRIMM

public final Token OpcodeGPRIMM()
                         throws ParseException
Throws:
ParseException

InstrIMM

public final void InstrIMM()
                    throws ParseException
Throws:
ParseException

OpcodeIMM

public final Token OpcodeIMM()
                      throws ParseException
Throws:
ParseException

InstrIMMIMM

public final void InstrIMMIMM()
                       throws ParseException
Throws:
ParseException

OpcodeIMMIMM

public final Token OpcodeIMMIMM()
                         throws ParseException
Throws:
ParseException

InstrLoad

public final void InstrLoad()
                     throws ParseException
Throws:
ParseException

InstrLDI

public final void InstrLDI()
                    throws ParseException
Throws:
ParseException

InstrLD_variant

public final void InstrLD_variant()
                           throws ParseException
Throws:
ParseException

InstrLD

public final void InstrLD()
                   throws ParseException
Throws:
ParseException

InstrLDPI

public final void InstrLDPI()
                     throws ParseException
Throws:
ParseException

InstrLDPD

public final void InstrLDPD()
                     throws ParseException
Throws:
ParseException

InstrLDD

public final void InstrLDD()
                    throws ParseException
Throws:
ParseException

InstrLDS

public final void InstrLDS()
                    throws ParseException
Throws:
ParseException

InstrLPM_variant

public final void InstrLPM_variant()
                            throws ParseException
Throws:
ParseException

InstrLPMGPRGPR

public final void InstrLPMGPRGPR()
                          throws ParseException
Throws:
ParseException

InstrLPMGPRGPRP

public final void InstrLPMGPRGPRP()
                           throws ParseException
Throws:
ParseException

InstrLPMBARE

public final void InstrLPMBARE()
                        throws ParseException
Throws:
ParseException

OpcodeLPM

public final Token OpcodeLPM()
                      throws ParseException
Throws:
ParseException

InstrStore

public final void InstrStore()
                      throws ParseException
Throws:
ParseException

InstrST_variant

public final void InstrST_variant()
                           throws ParseException
Throws:
ParseException

InstrST

public final void InstrST()
                   throws ParseException
Throws:
ParseException

InstrSTPI

public final void InstrSTPI()
                     throws ParseException
Throws:
ParseException

InstrSTPD

public final void InstrSTPD()
                     throws ParseException
Throws:
ParseException

InstrSTD

public final void InstrSTD()
                    throws ParseException
Throws:
ParseException

InstrSTS

public final void InstrSTS()
                    throws ParseException
Throws:
ParseException

InstrBARE

public final void InstrBARE()
                     throws ParseException
Throws:
ParseException

InstrInput

public final void InstrInput()
                      throws ParseException
Throws:
ParseException

InstrOutput

public final void InstrOutput()
                       throws ParseException
Throws:
ParseException

Register

public final SyntacticOperand.Register Register()
                                         throws ParseException
Throws:
ParseException

Label

public final void Label()
                 throws ParseException
Throws:
ParseException

Const

public final SyntacticOperand.Expr Const()
                                  throws ParseException
Throws:
ParseException

Term

public final Expr Term()
                throws ParseException
Throws:
ParseException

RelExpr

public final Expr RelExpr()
                   throws ParseException
Throws:
ParseException

BinOp

public final Token BinOp()
                  throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ObjDumpParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()