|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.analysis.AnalysisAdapter
tip.analysis.DepthFirstAdapter
tip.phases.TypeChecking
public class TypeChecking
Constructor Summary | |
---|---|
TypeChecking()
|
Methods inherited from class tip.analysis.AnalysisAdapter |
---|
caseEOF, caseTAnd, caseTAssign, caseTComma, caseTCommentBlock, caseTCommentSingle, caseTDiv, caseTElse, caseTEq, caseTGt, 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 |
---|
public TypeChecking()
Method Detail |
---|
public void caseTIdentifier(TIdentifier name)
AnalysisAdapter
TIdentifier
node from TIdentifier#apply(Switch)
.
caseTIdentifier
in interface Analysis
caseTIdentifier
in class AnalysisAdapter
name
- the calling TIdentifier
nodepublic void outAVarExp(AVarExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAVarExp(AVarExp)
after traversing the children of AVarExp
.
outAVarExp
in class DepthFirstAdapter
node
- the visited AVarExp
nodepublic void outADerefExp(ADerefExp node)
DepthFirstAdapter
DepthFirstAdapter.caseADerefExp(ADerefExp)
after traversing the children of ADerefExp
.
outADerefExp
in class DepthFirstAdapter
node
- the visited ADerefExp
nodepublic void outAPointerExp(APointerExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAPointerExp(APointerExp)
after traversing the children of APointerExp
.
outAPointerExp
in class DepthFirstAdapter
node
- the visited APointerExp
nodepublic void outABinopExp(ABinopExp node)
DepthFirstAdapter
DepthFirstAdapter.caseABinopExp(ABinopExp)
after traversing the children of ABinopExp
.
outABinopExp
in class DepthFirstAdapter
node
- the visited ABinopExp
nodepublic void outAAssignVarStm(AAssignVarStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAAssignVarStm(AAssignVarStm)
after traversing the children of AAssignVarStm
.
outAAssignVarStm
in class DepthFirstAdapter
node
- the visited AAssignVarStm
nodepublic void outAAssignPtrStm(AAssignPtrStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAAssignPtrStm(AAssignPtrStm)
after traversing the children of AAssignPtrStm
.
outAAssignPtrStm
in class DepthFirstAdapter
node
- the visited AAssignPtrStm
nodepublic void outAIntConstExp(AIntConstExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAIntConstExp(AIntConstExp)
after traversing the children of AIntConstExp
.
outAIntConstExp
in class DepthFirstAdapter
node
- the visited AIntConstExp
nodepublic void outAMallocExp(AMallocExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAMallocExp(AMallocExp)
after traversing the children of AMallocExp
.
outAMallocExp
in class DepthFirstAdapter
node
- the visited AMallocExp
nodepublic void outANullExp(ANullExp node)
DepthFirstAdapter
DepthFirstAdapter.caseANullExp(ANullExp)
after traversing the children of ANullExp
.
outANullExp
in class DepthFirstAdapter
node
- the visited ANullExp
nodepublic void outAInputExp(AInputExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAInputExp(AInputExp)
after traversing the children of AInputExp
.
outAInputExp
in class DepthFirstAdapter
node
- the visited AInputExp
nodepublic void outAFunctionCallExp(AFunctionCallExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAFunctionCallExp(AFunctionCallExp)
after traversing the children of AFunctionCallExp
.
outAFunctionCallExp
in class DepthFirstAdapter
node
- the visited AFunctionCallExp
nodepublic void outAFunctionPtrCallExp(AFunctionPtrCallExp node)
DepthFirstAdapter
DepthFirstAdapter.caseAFunctionPtrCallExp(AFunctionPtrCallExp)
after traversing the children of AFunctionPtrCallExp
.
outAFunctionPtrCallExp
in class DepthFirstAdapter
node
- the visited AFunctionPtrCallExp
nodepublic void outAFuncDecl(AFuncDecl node)
DepthFirstAdapter
DepthFirstAdapter.caseAFuncDecl(AFuncDecl)
after traversing the children of AFuncDecl
.
outAFuncDecl
in class DepthFirstAdapter
node
- the visited AFuncDecl
nodepublic void outAIfThenStm(AIfThenStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAIfThenStm(AIfThenStm)
after traversing the children of AIfThenStm
.
outAIfThenStm
in class DepthFirstAdapter
node
- the visited AIfThenStm
nodepublic void outAIfThenElseStm(AIfThenElseStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAIfThenElseStm(AIfThenElseStm)
after traversing the children of AIfThenElseStm
.
outAIfThenElseStm
in class DepthFirstAdapter
node
- the visited AIfThenElseStm
nodepublic void outAWhileStm(AWhileStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAWhileStm(AWhileStm)
after traversing the children of AWhileStm
.
outAWhileStm
in class DepthFirstAdapter
node
- the visited AWhileStm
nodepublic void outAOutputStm(AOutputStm node)
DepthFirstAdapter
DepthFirstAdapter.caseAOutputStm(AOutputStm)
after traversing the children of AOutputStm
.
outAOutputStm
in class DepthFirstAdapter
node
- the visited AOutputStm
nodepublic void inAProgram(AProgram node)
DepthFirstAdapter
DepthFirstAdapter.caseAProgram(AProgram)
before traversing the children of AProgram
.
inAProgram
in class DepthFirstAdapter
node
- the visited AProgram
nodepublic void outAProgram(AProgram node)
DepthFirstAdapter
DepthFirstAdapter.caseAProgram(AProgram)
after traversing the children of AProgram
.
outAProgram
in class DepthFirstAdapter
node
- the visited AProgram
node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |