public interface Context
slogo.instruction.Instruction
can execute and modify/access the Context as appropriate.Modifier and Type | Method and Description |
---|---|
double |
value(java.lang.String name)
If there are local/global variables, a variable might have a different
value depending on the Context, so Contexts should support determining
the value of an identifier (this method may be superfluous).
|
double value(java.lang.String name)
name
- identifier being evaluated in this Context