Class StmtNode
Object
ASTNode
StmtNode
- Direct Known Subclasses:
- AssignStmtNode, CallStmtNode, ExitStmtNode, ForStmtNode, IfStmtNode, NullStmtNode, ReadStmtNode, ReturnStmtNode, WhileStmtNode, WriteStmtNode
public abstract class StmtNode
- extends ASTNode
An AST node representing a statement of some sort.
Method Summary |
void |
codeGen(StmtNode loop)
Generates code for this node and all descendants. |
enclosingProc
public ProcDeclNode enclosingProc
- Pointer to the smallest enclosing procedure or function.
exitLabel
public String exitLabel
- Exit label. Only used for WhileStmtNode and ForStmtNode.
StmtNode
public StmtNode()
codeGen
public void codeGen(StmtNode loop)
- Generates code for this node and all descendants.
- Parameters:
loop
- the smallest enclosing ForStmtNode or WhileStmtNode, if any.