public class MyILOCGenerator extends ILOCGenerator
Constructor and Description |
---|
MyILOCGenerator() |
Modifier and Type | Method and Description |
---|---|
int |
emitArgs(ASTNode dest,
List<ASTExpression> arguments) |
void |
postVisit(ASTAssignment node) |
void |
postVisit(ASTBinaryExpr node) |
void |
postVisit(ASTBlock node) |
void |
postVisit(ASTBreak node) |
void |
postVisit(ASTConditional node) |
void |
postVisit(ASTContinue node) |
void |
postVisit(ASTFunction node) |
void |
postVisit(ASTFunctionCall node) |
void |
postVisit(ASTLiteral node) |
void |
postVisit(ASTLocation node) |
void |
postVisit(ASTReturn node) |
void |
postVisit(ASTUnaryExpr node) |
void |
postVisit(ASTVoidFunctionCall node) |
void |
postVisit(ASTWhileLoop node) |
void |
preVisit(ASTFunction node) |
void |
preVisit(ASTWhileLoop node) |
addComment, base, copyCode, emit, emit, emit, emit, emit, emitLoad, emitStore, getCode, getProgram, getTempReg, indexedOffset, offset, postVisit, setTempReg
defaultInVisit, defaultPostVisit, defaultPreVisit, inVisit, postVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit
public void preVisit(ASTFunction node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTFunction node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTBlock node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTAssignment node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTVoidFunctionCall node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTConditional node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTWhileLoop node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTWhileLoop node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTBreak node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTContinue node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTReturn node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTBinaryExpr node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTUnaryExpr node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTFunctionCall node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTLocation node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTLiteral node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public int emitArgs(ASTNode dest, List<ASTExpression> arguments)
Copyright © 2019. All rights reserved.