|
||||||||||
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.CodeGeneration
public class CodeGeneration
Constructor Summary | |
---|---|
CodeGeneration()
|
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 |
---|
public CodeGeneration()
Method Detail |
---|
public void inABody(ABody body)
DepthFirstAdapter
DepthFirstAdapter.caseABody(ABody)
before traversing the children of ABody
.
inABody
in class DepthFirstAdapter
body
- the visited ABody
nodepublic void caseAIntConstExp(AIntConstExp node)
DepthFirstAdapter
DepthFirstAdapter.inAIntConstExp(AIntConstExp)
, traverses the children of AIntConstExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAIntConstExp(AIntConstExp)
.
caseAIntConstExp
in interface Analysis
caseAIntConstExp
in class DepthFirstAdapter
node
- the visited AIntConstExp
nodepublic void caseAMallocExp(AMallocExp node)
DepthFirstAdapter
DepthFirstAdapter.inAMallocExp(AMallocExp)
, traverses the children of AMallocExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAMallocExp(AMallocExp)
.
caseAMallocExp
in interface Analysis
caseAMallocExp
in class DepthFirstAdapter
node
- the visited AMallocExp
nodepublic void caseANullExp(ANullExp node)
DepthFirstAdapter
DepthFirstAdapter.inANullExp(ANullExp)
, traverses the children of ANullExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outANullExp(ANullExp)
.
caseANullExp
in interface Analysis
caseANullExp
in class DepthFirstAdapter
node
- the visited ANullExp
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 caseAInputExp(AInputExp node)
DepthFirstAdapter
DepthFirstAdapter.inAInputExp(AInputExp)
, traverses the children of AInputExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAInputExp(AInputExp)
.
caseAInputExp
in interface Analysis
caseAInputExp
in class DepthFirstAdapter
node
- the visited AInputExp
nodepublic void caseAOutputStm(AOutputStm node)
DepthFirstAdapter
DepthFirstAdapter.inAOutputStm(AOutputStm)
, traverses the children of AOutputStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAOutputStm(AOutputStm)
.
caseAOutputStm
in interface Analysis
caseAOutputStm
in class DepthFirstAdapter
node
- the visited AOutputStm
nodepublic void caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
DepthFirstAdapter
DepthFirstAdapter.inAFunctionPtrCallExp(AFunctionPtrCallExp)
, traverses the children of AFunctionPtrCallExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAFunctionPtrCallExp(AFunctionPtrCallExp)
.
caseAFunctionPtrCallExp
in interface Analysis
caseAFunctionPtrCallExp
in class DepthFirstAdapter
node
- the visited AFunctionPtrCallExp
nodepublic void caseAIfThenStm(AIfThenStm node)
DepthFirstAdapter
DepthFirstAdapter.inAIfThenStm(AIfThenStm)
, traverses the children of AIfThenStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAIfThenStm(AIfThenStm)
.
caseAIfThenStm
in interface Analysis
caseAIfThenStm
in class DepthFirstAdapter
node
- the visited AIfThenStm
nodepublic void caseAIfThenElseStm(AIfThenElseStm node)
DepthFirstAdapter
DepthFirstAdapter.inAIfThenElseStm(AIfThenElseStm)
, traverses the children of AIfThenElseStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAIfThenElseStm(AIfThenElseStm)
.
caseAIfThenElseStm
in interface Analysis
caseAIfThenElseStm
in class DepthFirstAdapter
node
- the visited AIfThenElseStm
nodepublic void caseAWhileStm(AWhileStm node)
DepthFirstAdapter
DepthFirstAdapter.inAWhileStm(AWhileStm)
, traverses the children of AWhileStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAWhileStm(AWhileStm)
.
caseAWhileStm
in interface Analysis
caseAWhileStm
in class DepthFirstAdapter
node
- the visited AWhileStm
nodepublic void caseAReturnStm(AReturnStm node)
DepthFirstAdapter
DepthFirstAdapter.inAReturnStm(AReturnStm)
, traverses the children of AReturnStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAReturnStm(AReturnStm)
.
caseAReturnStm
in interface Analysis
caseAReturnStm
in class DepthFirstAdapter
node
- the visited AReturnStm
nodepublic void caseAVarExp(AVarExp node)
DepthFirstAdapter
DepthFirstAdapter.inAVarExp(AVarExp)
, traverses the children of AVarExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAVarExp(AVarExp)
.
caseAVarExp
in interface Analysis
caseAVarExp
in class DepthFirstAdapter
node
- the visited AVarExp
nodepublic void caseADerefExp(ADerefExp node)
DepthFirstAdapter
DepthFirstAdapter.inADerefExp(ADerefExp)
, traverses the children of ADerefExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outADerefExp(ADerefExp)
.
caseADerefExp
in interface Analysis
caseADerefExp
in class DepthFirstAdapter
node
- the visited ADerefExp
nodepublic void caseAPointerExp(APointerExp node)
DepthFirstAdapter
DepthFirstAdapter.inAPointerExp(APointerExp)
, traverses the children of APointerExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAPointerExp(APointerExp)
.
caseAPointerExp
in interface Analysis
caseAPointerExp
in class DepthFirstAdapter
node
- the visited APointerExp
nodepublic void caseABinopExp(ABinopExp node)
DepthFirstAdapter
DepthFirstAdapter.inABinopExp(ABinopExp)
, traverses the children of ABinopExp
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outABinopExp(ABinopExp)
.
caseABinopExp
in interface Analysis
caseABinopExp
in class DepthFirstAdapter
node
- the visited ABinopExp
nodepublic void caseAAssignVarStm(AAssignVarStm node)
DepthFirstAdapter
DepthFirstAdapter.inAAssignVarStm(AAssignVarStm)
, traverses the children of AAssignVarStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAAssignVarStm(AAssignVarStm)
.
caseAAssignVarStm
in interface Analysis
caseAAssignVarStm
in class DepthFirstAdapter
node
- the visited AAssignVarStm
nodepublic void caseAAssignPtrStm(AAssignPtrStm node)
DepthFirstAdapter
DepthFirstAdapter.inAAssignPtrStm(AAssignPtrStm)
, traverses the children of AAssignPtrStm
in
the order they are defined in the grammar, and finally
calls DepthFirstAdapter.outAAssignPtrStm(AAssignPtrStm)
.
caseAAssignPtrStm
in interface Analysis
caseAAssignPtrStm
in class DepthFirstAdapter
node
- the visited AAssignPtrStm
node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |