tip.parser
Class TokenIndex

java.lang.Object
  extended by tip.analysis.AnalysisAdapter
      extended by tip.parser.TokenIndex
All Implemented Interfaces:
Analysis

 class TokenIndex
extends AnalysisAdapter


Field Summary
(package private)  int index
           
 
Constructor Summary
TokenIndex()
           
 
Method Summary
 void caseEOF(EOF node)
          Called by the EOF node from EOF#apply(Switch).
 void caseTAnd(TAnd node)
          Called by the TAnd node from TAnd#apply(Switch).
 void caseTAssign(TAssign node)
          Called by the TAssign node from TAssign#apply(Switch).
 void caseTComma(TComma node)
          Called by the TComma node from TComma#apply(Switch).
 void caseTDiv(TDiv node)
          Called by the TDiv node from TDiv#apply(Switch).
 void caseTElse(TElse node)
          Called by the TElse node from TElse#apply(Switch).
 void caseTEq(TEq node)
          Called by the TEq node from TEq#apply(Switch).
 void caseTGt(TGt node)
          Called by the TGt node from TGt#apply(Switch).
 void caseTIdentifier(TIdentifier node)
          Called by the TIdentifier node from TIdentifier#apply(Switch).
 void caseTIf(TIf node)
          Called by the TIf node from TIf#apply(Switch).
 void caseTInput(TInput node)
          Called by the TInput node from TInput#apply(Switch).
 void caseTIntegerConst(TIntegerConst node)
          Called by the TIntegerConst node from TIntegerConst#apply(Switch).
 void caseTLBrace(TLBrace node)
          Called by the TLBrace node from TLBrace#apply(Switch).
 void caseTLPar(TLPar node)
          Called by the TLPar node from TLPar#apply(Switch).
 void caseTMalloc(TMalloc node)
          Called by the TMalloc node from TMalloc#apply(Switch).
 void caseTMinus(TMinus node)
          Called by the TMinus node from TMinus#apply(Switch).
 void caseTNull(TNull node)
          Called by the TNull node from TNull#apply(Switch).
 void caseTOutput(TOutput node)
          Called by the TOutput node from TOutput#apply(Switch).
 void caseTPlus(TPlus node)
          Called by the TPlus node from TPlus#apply(Switch).
 void caseTRBrace(TRBrace node)
          Called by the TRBrace node from TRBrace#apply(Switch).
 void caseTReturn(TReturn node)
          Called by the TReturn node from TReturn#apply(Switch).
 void caseTRPar(TRPar node)
          Called by the TRPar node from TRPar#apply(Switch).
 void caseTSemicolon(TSemicolon node)
          Called by the TSemicolon node from TSemicolon#apply(Switch).
 void caseTStar(TStar node)
          Called by the TStar node from TStar#apply(Switch).
 void caseTVar(TVar node)
          Called by the TVar node from TVar#apply(Switch).
 void caseTWhile(TWhile node)
          Called by the TWhile node from TWhile#apply(Switch).
 
Methods inherited from class tip.analysis.AnalysisAdapter
caseABinopExp, caseABlock, caseABlockStm, caseABody, caseADeclStm, caseADerefExp, caseADivideBinop, caseAEqBinop, caseAFuncDecl, caseAFunctionCallExp, caseAFunctionPtrCallExp, caseAGtBinop, caseAIfThenElseStm, caseAIfThenStm, caseAInputExp, caseAIntConstExp, caseALocalDecl, caseAMallocExp, caseAMinusBinop, caseANullExp, caseAOutputStm, caseAPlusBinop, caseAPointerExp, caseAProgram, caseAReturnStm, caseATimesBinop, caseAVarExp, caseAWhileStm, caseStart, caseTCommentBlock, caseTCommentSingle, caseTWhiteSpace, caseAAssignPtrStm, caseAAssignVarStm, defaultNode, defaultPBinop, defaultPBlock, defaultPBody, defaultPDecl, defaultPExp, defaultPProgram, defaultPStm, defaultToken, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

int index
Constructor Detail

TokenIndex

TokenIndex()
Method Detail

caseTVar

public void caseTVar(TVar node)
Description copied from class: AnalysisAdapter
Called by the TVar node from TVar#apply(Switch).

Specified by:
caseTVar in interface Analysis
Overrides:
caseTVar in class AnalysisAdapter
Parameters:
node - the calling TVar node

caseTInput

public void caseTInput(TInput node)
Description copied from class: AnalysisAdapter
Called by the TInput node from TInput#apply(Switch).

Specified by:
caseTInput in interface Analysis
Overrides:
caseTInput in class AnalysisAdapter
Parameters:
node - the calling TInput node

caseTOutput

public void caseTOutput(TOutput node)
Description copied from class: AnalysisAdapter
Called by the TOutput node from TOutput#apply(Switch).

Specified by:
caseTOutput in interface Analysis
Overrides:
caseTOutput in class AnalysisAdapter
Parameters:
node - the calling TOutput node

caseTIf

public void caseTIf(TIf node)
Description copied from class: AnalysisAdapter
Called by the TIf node from TIf#apply(Switch).

Specified by:
caseTIf in interface Analysis
Overrides:
caseTIf in class AnalysisAdapter
Parameters:
node - the calling TIf node

caseTElse

public void caseTElse(TElse node)
Description copied from class: AnalysisAdapter
Called by the TElse node from TElse#apply(Switch).

Specified by:
caseTElse in interface Analysis
Overrides:
caseTElse in class AnalysisAdapter
Parameters:
node - the calling TElse node

caseTWhile

public void caseTWhile(TWhile node)
Description copied from class: AnalysisAdapter
Called by the TWhile node from TWhile#apply(Switch).

Specified by:
caseTWhile in interface Analysis
Overrides:
caseTWhile in class AnalysisAdapter
Parameters:
node - the calling TWhile node

caseTReturn

public void caseTReturn(TReturn node)
Description copied from class: AnalysisAdapter
Called by the TReturn node from TReturn#apply(Switch).

Specified by:
caseTReturn in interface Analysis
Overrides:
caseTReturn in class AnalysisAdapter
Parameters:
node - the calling TReturn node

caseTMalloc

public void caseTMalloc(TMalloc node)
Description copied from class: AnalysisAdapter
Called by the TMalloc node from TMalloc#apply(Switch).

Specified by:
caseTMalloc in interface Analysis
Overrides:
caseTMalloc in class AnalysisAdapter
Parameters:
node - the calling TMalloc node

caseTNull

public void caseTNull(TNull node)
Description copied from class: AnalysisAdapter
Called by the TNull node from TNull#apply(Switch).

Specified by:
caseTNull in interface Analysis
Overrides:
caseTNull in class AnalysisAdapter
Parameters:
node - the calling TNull node

caseTLPar

public void caseTLPar(TLPar node)
Description copied from class: AnalysisAdapter
Called by the TLPar node from TLPar#apply(Switch).

Specified by:
caseTLPar in interface Analysis
Overrides:
caseTLPar in class AnalysisAdapter
Parameters:
node - the calling TLPar node

caseTRPar

public void caseTRPar(TRPar node)
Description copied from class: AnalysisAdapter
Called by the TRPar node from TRPar#apply(Switch).

Specified by:
caseTRPar in interface Analysis
Overrides:
caseTRPar in class AnalysisAdapter
Parameters:
node - the calling TRPar node

caseTLBrace

public void caseTLBrace(TLBrace node)
Description copied from class: AnalysisAdapter
Called by the TLBrace node from TLBrace#apply(Switch).

Specified by:
caseTLBrace in interface Analysis
Overrides:
caseTLBrace in class AnalysisAdapter
Parameters:
node - the calling TLBrace node

caseTRBrace

public void caseTRBrace(TRBrace node)
Description copied from class: AnalysisAdapter
Called by the TRBrace node from TRBrace#apply(Switch).

Specified by:
caseTRBrace in interface Analysis
Overrides:
caseTRBrace in class AnalysisAdapter
Parameters:
node - the calling TRBrace node

caseTSemicolon

public void caseTSemicolon(TSemicolon node)
Description copied from class: AnalysisAdapter
Called by the TSemicolon node from TSemicolon#apply(Switch).

Specified by:
caseTSemicolon in interface Analysis
Overrides:
caseTSemicolon in class AnalysisAdapter
Parameters:
node - the calling TSemicolon node

caseTComma

public void caseTComma(TComma node)
Description copied from class: AnalysisAdapter
Called by the TComma node from TComma#apply(Switch).

Specified by:
caseTComma in interface Analysis
Overrides:
caseTComma in class AnalysisAdapter
Parameters:
node - the calling TComma node

caseTAssign

public void caseTAssign(TAssign node)
Description copied from class: AnalysisAdapter
Called by the TAssign node from TAssign#apply(Switch).

Specified by:
caseTAssign in interface Analysis
Overrides:
caseTAssign in class AnalysisAdapter
Parameters:
node - the calling TAssign node

caseTPlus

public void caseTPlus(TPlus node)
Description copied from class: AnalysisAdapter
Called by the TPlus node from TPlus#apply(Switch).

Specified by:
caseTPlus in interface Analysis
Overrides:
caseTPlus in class AnalysisAdapter
Parameters:
node - the calling TPlus node

caseTMinus

public void caseTMinus(TMinus node)
Description copied from class: AnalysisAdapter
Called by the TMinus node from TMinus#apply(Switch).

Specified by:
caseTMinus in interface Analysis
Overrides:
caseTMinus in class AnalysisAdapter
Parameters:
node - the calling TMinus node

caseTStar

public void caseTStar(TStar node)
Description copied from class: AnalysisAdapter
Called by the TStar node from TStar#apply(Switch).

Specified by:
caseTStar in interface Analysis
Overrides:
caseTStar in class AnalysisAdapter
Parameters:
node - the calling TStar node

caseTDiv

public void caseTDiv(TDiv node)
Description copied from class: AnalysisAdapter
Called by the TDiv node from TDiv#apply(Switch).

Specified by:
caseTDiv in interface Analysis
Overrides:
caseTDiv in class AnalysisAdapter
Parameters:
node - the calling TDiv node

caseTAnd

public void caseTAnd(TAnd node)
Description copied from class: AnalysisAdapter
Called by the TAnd node from TAnd#apply(Switch).

Specified by:
caseTAnd in interface Analysis
Overrides:
caseTAnd in class AnalysisAdapter
Parameters:
node - the calling TAnd node

caseTGt

public void caseTGt(TGt node)
Description copied from class: AnalysisAdapter
Called by the TGt node from TGt#apply(Switch).

Specified by:
caseTGt in interface Analysis
Overrides:
caseTGt in class AnalysisAdapter
Parameters:
node - the calling TGt node

caseTEq

public void caseTEq(TEq node)
Description copied from class: AnalysisAdapter
Called by the TEq node from TEq#apply(Switch).

Specified by:
caseTEq in interface Analysis
Overrides:
caseTEq in class AnalysisAdapter
Parameters:
node - the calling TEq node

caseTIntegerConst

public void caseTIntegerConst(TIntegerConst node)
Description copied from class: AnalysisAdapter
Called by the TIntegerConst node from TIntegerConst#apply(Switch).

Specified by:
caseTIntegerConst in interface Analysis
Overrides:
caseTIntegerConst in class AnalysisAdapter
Parameters:
node - the calling TIntegerConst node

caseTIdentifier

public void caseTIdentifier(TIdentifier node)
Description copied from class: AnalysisAdapter
Called by the TIdentifier node from TIdentifier#apply(Switch).

Specified by:
caseTIdentifier in interface Analysis
Overrides:
caseTIdentifier in class AnalysisAdapter
Parameters:
node - the calling TIdentifier node

caseEOF

public void caseEOF(EOF node)
Description copied from class: AnalysisAdapter
Called by the EOF node from EOF#apply(Switch).

Specified by:
caseEOF in interface Analysis
Overrides:
caseEOF in class AnalysisAdapter
Parameters:
node - the calling EOF token