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.
|
Backward |
Moves the turtle backwards by the amount specified
|
BinaryExpression |
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on.
|
Clean |
Clears the drawing area (the turtle's statistics do not reset)
|
ClearScreen |
Erases the drawing area and sends the turtle to the home position (Like CLEAN and HOME)
|
Division |
Represents a / b, the division of two expressions
|
FD |
Moves the turtle forward by dist pixels
|
Heading |
Returns the turtle's heading in degrees
|
HideTurtle |
Makes the turtle invisible
|
Home |
Moves the turtle to the center of the screen (0 0)
|
If |
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
|
Instruction |
Represents an instruction in the SLogo language
|
IsEqual |
Returns 1 if the two inputs are equal, 0 otherwise
|
IsGreater |
Returns 1 if its first input is strictly greater than its second, or 0 otherwise
|
IsLess |
Returns 1(:TRUE) if its first input is strictly less than its second, or 0 otherwise (:FALSE)
|
IsNotEqual |
Returns 1 if the two inputs are not equal, 0 otherwise
|
Left |
Turns the turtle counterclockwise by the specified angle
|
Multiplication |
Represents a x b, the multiplication of two expressions
|
Negation |
Represents unary minus, e.g., MINUS num OR -expression
|
PenDown |
Sets the pen's position to DOWN
|
PenDownP |
Returns 1 (:TRUE) if the pen is down, 0 (:FALSE) if it's up.
|
PenUp |
Sets the pen's position to UP
|
The Print instruction prints an expression.
|
|
Quotient |
Represents a / b, the division of two expressions
|
Remainder |
Represents a % b, the division of two expressions
|
Repeat |
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
|
Right |
Turns the turtle clockwise by the specified angle
|
Setx |
Moves the turtle horizontally to a new absolute horizontal coordinate
|
Setxy |
Moves the turtle to an absolute screen position.
|
Sety |
Moves the turtle vertically to a new absolute vertical coordinate
|
ShowTurtle |
Makes the turtle visible
|
StrictInstructionList |
A list of instructions that doesn't include a function definition.
|
Subtraction |
Represents a subtraction (e.g., lhs - rhs)
|
To | |
Towards |
Changes the heading of the turtle to point in the direction of given coordinates
|
UnaryExpression |
Represents a unary expression
|
XCor |
Determines the X Coordinate of the turtle
|
YCor |
Determines the Y Coordinate of the turtle
|