tip.phases
Class Environments

java.lang.Object
  extended by tip.analysis.AnalysisAdapter
      extended by tip.analysis.DepthFirstAdapter
          extended by tip.phases.Environments
All Implemented Interfaces:
Analysis

public class Environments
extends DepthFirstAdapter


Constructor Summary
Environments()
           
 
Method Summary
 void inAFuncDecl(AFuncDecl node)
          Called by DepthFirstAdapter.caseAFuncDecl(AFuncDecl) before traversing the children of AFuncDecl.
 void inALocalDecl(ALocalDecl node)
          Called by DepthFirstAdapter.caseALocalDecl(ALocalDecl) before traversing the children of ALocalDecl.
 void inAMallocExp(AMallocExp node)
          Called by DepthFirstAdapter.caseAMallocExp(AMallocExp) before traversing the children of AMallocExp.
 void inAProgram(AProgram node)
          Called by DepthFirstAdapter.caseAProgram(AProgram) before traversing the children of AProgram.
 
Methods inherited from class tip.analysis.DepthFirstAdapter
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, caseAAssignPtrStm, caseAAssignVarStm, defaultIn, defaultInPBinop, defaultInPBlock, defaultInPBody, defaultInPDecl, defaultInPExp, defaultInPProgram, defaultInPStm, defaultOut, defaultOutPBinop, defaultOutPBlock, defaultOutPBody, defaultOutPDecl, defaultOutPExp, defaultOutPProgram, defaultOutPStm, defaultPBinop, defaultPBlock, defaultPBody, defaultPDecl, defaultPExp, defaultPProgram, defaultPStm, inABinopExp, inABlock, inABlockStm, inABody, inADeclStm, inADerefExp, inADivideBinop, inAEqBinop, inAFunctionCallExp, inAFunctionPtrCallExp, inAGtBinop, inAIfThenElseStm, inAIfThenStm, inAInputExp, inAIntConstExp, inAMinusBinop, inANullExp, inAOutputStm, inAPlusBinop, inAPointerExp, inAReturnStm, inATimesBinop, inAVarExp, inAWhileStm, inStart, inAAssignPtrStm, inAAssignVarStm, outABinopExp, outABlock, outABlockStm, outABody, outADeclStm, outADerefExp, outADivideBinop, outAEqBinop, outAFuncDecl, outAFunctionCallExp, outAFunctionPtrCallExp, outAGtBinop, outAIfThenElseStm, outAIfThenStm, outAInputExp, outAIntConstExp, outALocalDecl, outAMallocExp, outAMinusBinop, outANullExp, outAOutputStm, outAPlusBinop, outAPointerExp, outAProgram, outAReturnStm, outATimesBinop, outAVarExp, outAWhileStm, outStart, outAAssignPtrStm, outAAssignVarStm
 
Methods inherited from class tip.analysis.AnalysisAdapter
caseEOF, caseTAnd, caseTAssign, caseTComma, caseTCommentBlock, caseTCommentSingle, caseTDiv, caseTElse, caseTEq, caseTGt, caseTIdentifier, caseTIf, caseTInput, caseTIntegerConst, caseTLBrace, caseTLPar, caseTMalloc, caseTMinus, caseTNull, caseTOutput, caseTPlus, caseTRBrace, caseTReturn, caseTRPar, caseTSemicolon, caseTStar, caseTVar, caseTWhile, caseTWhiteSpace, defaultNode, defaultToken, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environments

public Environments()
Method Detail

inALocalDecl

public void inALocalDecl(ALocalDecl node)
Description copied from class: DepthFirstAdapter
Called by DepthFirstAdapter.caseALocalDecl(ALocalDecl) before traversing the children of ALocalDecl.

Overrides:
inALocalDecl in class DepthFirstAdapter
Parameters:
node - the visited ALocalDecl node

inAFuncDecl

public void inAFuncDecl(AFuncDecl node)
Description copied from class: DepthFirstAdapter
Called by DepthFirstAdapter.caseAFuncDecl(AFuncDecl) before traversing the children of AFuncDecl.

Overrides:
inAFuncDecl in class DepthFirstAdapter
Parameters:
node - the visited AFuncDecl node

inAProgram

public void inAProgram(AProgram node)
Description copied from class: DepthFirstAdapter
Called by DepthFirstAdapter.caseAProgram(AProgram) before traversing the children of AProgram.

Overrides:
inAProgram in class DepthFirstAdapter
Parameters:
node - the visited AProgram node

inAMallocExp

public void inAMallocExp(AMallocExp node)
Description copied from class: DepthFirstAdapter
Called by DepthFirstAdapter.caseAMallocExp(AMallocExp) before traversing the children of AMallocExp.

Overrides:
inAMallocExp in class DepthFirstAdapter
Parameters:
node - the visited AMallocExp node