Package | Description |
---|---|
slogo | |
slogo.expression | |
slogo.instruction |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
GrammarElement.evaluate(Context c)
Evaluate this language construct in some context.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
Variable.evaluate(Context c)
uses the hook/template method value to return a Double
|
java.lang.Double |
ArithmeticBase.evaluate(Context c) |
double |
Variable.value(Context c) |
double |
Number.value(Context c) |
abstract double |
ArithmeticBase.value(Context c) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
StrictInstructionList.evaluate(Context c)
Evaluate this instruction in a Context, return the result of the
evaluation (the result is the last instruction executed).
|
java.lang.Object |
Repeat.evaluate(Context c)
Evaluate this instruction in a Context.
|
java.lang.Object |
Print.evaluate(Context c)
Evaluate the expression and println it.
|
abstract java.lang.Object |
Instruction.evaluate(Context c) |
java.lang.Object |
Assignment.evaluate(Context c)
Evaluate the expression that's part of this instruction and update a
global map/store to record the assignment of the expression to the
variable.
|
java.lang.Double |
ArithmeticInstruction.evaluate(Context c)
uses the hook/template method value to return a Double
|
double |
BinaryExpression.leftValue(Context c) |
double |
BinaryExpression.rightValue(Context c) |
double |
UnaryExpression.value(Context c) |
double |
Subtraction.value(Context c) |
double |
Negation.value(Context c) |
double |
Multiplication.value(Context c) |
double |
Division.value(Context c) |
abstract double |
ArithmeticInstruction.value(Context c) |
double |
Addition.value(Context c) |