coins.ffront
Class UnLabeledDoStmt
java.lang.Object
coins.ffront.FStmt
coins.ffront.UnLabeledDoStmt
- All Implemented Interfaces:
- Node
- public class UnLabeledDoStmt
- extends FStmt
| Fields inherited from class coins.ffront.FStmt |
defLabel, fDeclMgr, fESMgr, fHir, fHirUtil, fLine, fSymTable, fTypeUtil, generatedStmts, hir, stmt |
| Methods inherited from class coins.ffront.FStmt |
addGeneratedStmt, addGeneratedStmtFirst, addLabel, addResultTo, dp, getLabelString, getResult, hasNotLabel, makeArgAddr, makeExp, mergeSymTable, preprocess, setLineAndFileInfo, setSymTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnLabeledDoStmt
public UnLabeledDoStmt(Node pDoSpec,
Node pDoTail,
int line,
FirToHir pfHir)
print
public void print(int level,
java.lang.String spaces)
- Specified by:
print in interface Node- Overrides:
print in class FStmt
toString
public java.lang.String toString()
- Specified by:
toString in interface Node- Overrides:
toString in class FStmt
makeInitStmt
public Stmt makeInitStmt()
- Make Stmt "i = 1" from "DO 10 i = 1, 30"
- Returns:
- initiation statement.
makeCondExp
public Exp makeCondExp()
- Make Exp "i <= 30" from "DO 10 i = 1, 30"
- Returns:
- constant expression.
makeStepStmt
public Stmt makeStepStmt()
- Make Stmt "i = i + 5" from "DO 10 i = 1, 30, 5"
- Returns:
- step part Stmt.
makeLoopBodyStmt
Stmt makeLoopBodyStmt()
process
public void process()
- Description copied from class:
FStmt
- define optional label and add it to generated statements
- Overrides:
process in class FStmt