Class | Description |
---|---|
ArithmeticInstruction | |
Assignment |
An assignment instruction assigns an expression to a variable, updating the
global state to reflect the assignment.
|
Back |
The Back instruction moves the turtle 10 steps in the opposite direction of its heading.
|
BinaryExpression |
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on.
|
Clean | |
ClearScreen | |
Difference |
Represents a subtraction (e.g., lhs - rhs)
|
Equal | |
Forward | |
Greater | |
Heading | |
HideTurtle | |
Home | |
If | |
Instruction |
Represents an instruction in the SLogo language
|
Left | |
Less | |
Minus |
Represents unary minus, e.g., MINUS num OR -expression
|
NotEqual | |
PenDown | |
PenDownP | |
PenUp | |
The Print instruction prints an expression.
|
|
Product |
Represents a x b, the multiplication of two expressions
|
Quotient |
Represents a / b, the division of two expressions
|
Remainder | |
Repeat |
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
|
Right | |
SetX | |
SetXY | |
SetY | |
ShowTurtle | |
StrictInstructionList |
A list of instructions that doesn't include a function definition.
|
Sum |
Represents a + b, the addition of two expressions
|
To | |
Towards | |
UnaryExpression |
Represents a unary expression
|
XCor | |
YCor |