avrora.syntax.gas
Class FileMarkingTokenManager

java.lang.Object
  extended byavrora.syntax.gas.GASParserTokenManager
      extended byavrora.syntax.gas.FileMarkingTokenManager
All Implemented Interfaces:
GASParserConstants

public class FileMarkingTokenManager
extends GASParserTokenManager

The FileMarkingTokenManager is a subclass of the TokenManager for the Atmel parser that marks each token that is seen with the name of the file that it came from. This is useful in unifying multiple grammars that each have their own definition of Token, since an AbstractToken can be used by any part of the compiler.


Field Summary
protected  java.lang.String filename
           
 
Fields inherited from class avrora.syntax.gas.GASParserTokenManager
curChar, debugStream, input_stream, jjnewLexState, jjstrLiteralImages, lexStateNames
 
Fields inherited from interface avrora.syntax.gas.GASParserConstants
ADC, ADD, ADIW, AND, ANDI, ARCH, 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, BYTE, CALL, CBI, CBR, CHARACTER_LITERAL, CLC, CLH, CLI, CLN, CLR, CLS, CLT, CLV, CLZ, COM, CP, CPC, CPI, CPSE, DATA, DEC, DECIMAL_LITERAL, DEFAULT, DIGIT, EICALL, EIJMP, ELPM, EOF, EOR, EQU, FILE, FMUL, FMULS, FMULSU, FORMAL_COMMENT, GLOBAL, HEX_LITERAL, HI8, ICALL, IDENTIFIER, IJMP, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INC, INCLUDE, INTEGER_LITERAL, JMP, LD, LDD, LDI, LDS, LETTER, LIST, LO8, LONG, LPM, LSL, LSR, MOV, MOVW, MUL, MULS, MULSU, MULTI_LINE_COMMENT, NEG, NOLIST, NOP, OCTAL_LITERAL, OR, ORG, ORI, OUT, POP, PUSH, RCALL, RET, RETI, RJMP, ROL, ROR, SBC, SBCI, SBI, SBIC, SBIS, SBIW, SBR, SBRC, SBRS, SEC, SEH, SEI, SEN, SER, SES, SET, SEV, SEZ, SINGLE_LINE_COMMENT, SIZE, SKIPS, SLEEP, SPACE, SPM, ST, STD, STRING_LITERAL, STS, SUB, SUBI, SWAP, TEXT, tokenImage, TST, TYPE, WDR, WORD
 
Constructor Summary
FileMarkingTokenManager(SimpleCharStream s, int lexState, java.lang.String fname)
           
FileMarkingTokenManager(SimpleCharStream s, java.lang.String fname)
           
 
Method Summary
protected  Token jjFillToken()
           
 void ReInit(SimpleCharStream s, int lexState, java.lang.String fname)
           
 void ReInit(SimpleCharStream s, java.lang.String fname)
           
 
Methods inherited from class avrora.syntax.gas.GASParserTokenManager
getNextToken, ReInit, ReInit, setDebugStream, SwitchTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

protected java.lang.String filename
Constructor Detail

FileMarkingTokenManager

public FileMarkingTokenManager(SimpleCharStream s,
                               java.lang.String fname)

FileMarkingTokenManager

public FileMarkingTokenManager(SimpleCharStream s,
                               int lexState,
                               java.lang.String fname)
Method Detail

ReInit

public void ReInit(SimpleCharStream s,
                   java.lang.String fname)

ReInit

public void ReInit(SimpleCharStream s,
                   int lexState,
                   java.lang.String fname)

jjFillToken

protected Token jjFillToken()
Overrides:
jjFillToken in class GASParserTokenManager