| Class | Description |
|---|---|
| Addition |
Represents a + b, the addition of two expressions
|
| ArithmeticInstruction | |
| Assignment |
An assignment instruction assigns an expression to a variable, updating the
global state to reflect the assignment.
|
| Back | |
| BinaryExpression |
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on.
|
| Clean |
A Clean instruction has zero components: when called, it will clear the screen.
|
| ClearScreen |
A CS instruction has zero components: when called, it will clear the screen
and return the turtle to its home coordinates.
|
| Difference |
A DIFFERENCE instruction has two components: two GrammarElements that represents the
two numbers to perform subtraction on.
|
| Division |
Represents a / b, the division of two expressions
|
| EqualBool |
A REMAINDER instruction has two components: two GrammarElements that represents the
two numbers to perform subtraction on.
|
| Forward |
A FORWARD instruction has one component: a GrammarElement that represents the
number of steps to take in the forward direction.
|
| Greater |
A GREATER instruction has two components: a GrammarElement that represents the first double and a
GrammarElement that represents the second double
To evaluate a GREATER instruction the expressions are evaluated first, this
determines then double version of the numbers.
|
| Heading |
A HEADING instruction has no components: when called, it will return the
current heading of the turtle.
|
| HideTurtle |
A HIDETURTLE instruction has no components: when called, it will hide the turtle
from the GUI view.
|
| Home |
A HOME instruction has no components: when called, it returns the Turtle back
to its home coordinates.
|
| If |
An IF instruction has two components: (1) an expression representing the
varOrComman and (2) a strict instruction list that is the list
of instructions that will be executed.
|
| Instruction |
Represents an instruction in the SLogo language
|
| Left |
A LEFT instruction has one component: a GrammarElement that represents the
number of degrees to turn the turtle to the left.
|
| Less |
A LESS instruction has two components: a GrammarElement that represents the first double and a
GrammarElement that represents the second double
To evaluate a LESS instruction the expressions are evaluated first, this
determines then double version of the numbers.
|
| Minus |
A MINUS instruction has one component: a GrammarElement that represents the
number to return the negative of.
|
| Multiplication |
Represents a x b, the multiplication of two expressions
|
| Negation |
Represents unary minus, e.g., MINUS num OR -expression
|
| NotEqual |
A NOTEQUAL instruction has two components: a GrammarElement that represents the first double and a
GrammarElement that represents the second double
To evaluate a NOTEQUAL instruction the expressions are evaluated first, this
determines then double version of the numbers.
|
| PenDown |
A PENDOWN instruction has no components: when called, it puts the pen down, which
gives the turtle drawing functionality.
|
| PenDownP |
A PENDOWNP instruction has no components: when called, it returns true or false,
depending on whether the pen is up or down
To evaluate a PENDOWNP instruction, the getPen method is called on the turtle.
|
| PenUp |
A PENUP instruction has no components: when called, it puts the pen up, which
takes away the turtle's drawing functionality.
|
|
The Print instruction prints an expression.
|
|
| Product |
A PRODUCT instruction has two components: two GrammarElements that represents the
two numbers to perform multiplication on.
|
| Quotient |
A QUOTIENT instruction has two components: two GrammarElements that represents the
two numbers to perform integer division on.
|
| Remainder | |
| Repeat |
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
|
| Right |
A RIGHT instruction has one component: a GrammarElement that represents the
number of degrees to turn the turtle to the right.
|
| SetX |
A SETX instruction has one component: a GrammarElement that represents the
x coordinate to set.
|
| SetXY |
A SETXY instruction has two components: two GrammarElements that represents the
x and y coordinates to set.
|
| SetY |
A SETY instruction has one component: a GrammarElement that represents the
y coordinate to set.
|
| ShowTurtle |
A SHOWTURTLE instruction has no components: when called, it will show the turtle
from the GUI view.
|
| StrictInstructionList |
A list of instructions that doesn't include a function definition.
|
| Subtraction |
Represents a subtraction (e.g., lhs - rhs)
|
| Sum |
A SUM instruction has two components: two GrammarElements that represents the
two numbers to perform addition on.
|
| To | |
| Towards |
Calculates the direction turtle should be facing and returns this to
|
| UnaryExpression |
Represents a unary expression
|
| Xcor |
A XCOR instruction has no components: when called, it returns the x coordinate of the
turtle's current position.
|
| Ycor |
A YCOR instruction has no components: when called, it returns the y coordinate of the
turtle's current position.
|