|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.frontend.fortran.ImpliedDo
public class ImpliedDo
This class is used to process the Fortran implied-do constructs.
$Id: ImpliedDo.java,v 1.12 2007-10-04 19:58:13 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary | |
---|---|
ImpliedDo(F95 f95,
int lineno)
|
Method Summary | |
---|---|
void |
add(Expression exp)
Add an expression to be iterated over. |
void |
add(ImpliedDo id)
Add another implied-do to be iterated over. |
void |
addData(Literal value,
long repeat)
Record a data item for use in DATA statements. |
DoLoopStmt |
genImpliedDoLoop(int callback,
F95 f95)
Generate the implied do loops and return the outer-most DO statement. |
boolean |
initVariables(boolean allowEqVars)
Initialize the variables collected with the data collected. |
void |
set(VariableDecl indexVar,
Expression init,
Expression limit,
Expression step)
Specify the implied do loop. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImpliedDo(F95 f95, int lineno)
f95
- is the parserlineno
- is the source line number causing this implied doMethod Detail |
---|
public void add(Expression exp)
SubscriptValueOp
instance.
public void add(ImpliedDo id)
((A(I,J),1,10),1,5)
.
public void set(VariableDecl indexVar, Expression init, Expression limit, Expression step) throws InvalidException
indexVar
- is the iteration variableinit
- is the initial value for the iteration variablelimit
- is the end value for the iteration variablestep
- is the increment
InvalidException
public void addData(Literal value, long repeat)
public boolean initVariables(boolean allowEqVars)
public DoLoopStmt genImpliedDoLoop(int callback, F95 f95) throws InvalidException
InvalidException
F95.callback(int, scale.clef.expr.Expression, scale.clef.stmt.BlockStmt)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |