public class Forward extends Instruction
Modifier and Type | Field and Description |
---|---|
private Expression |
forwardExpression |
gelementsToValue
Constructor and Description |
---|
Forward(Expression e)
Constructs a Repeat instruction that can be executed.
|
private Expression forwardExpression
public Forward(Expression e)
e
- number of steps to move forwardpublic java.lang.Object evaluate(Context c)
evaluate
in class Instruction
c
- the Context for the evaluationpublic java.lang.String toString()
toString
in class java.lang.Object