Package | Description |
---|---|
slogo.instruction |
Modifier and Type | Class and Description |
---|---|
class |
Addition
Represents a + b, the addition of two expressions
|
class |
ArithmeticInstruction
|
class |
BinaryExpression
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on.
|
class |
Division
Represents a / b, the division of two expressions
|
class |
Multiplication
Represents a x b, the multiplication of two expressions
|
class |
Negation
Represents unary minus, e.g., MINUS num OR -expression
|
class |
Print
The Print instruction prints an expression.
|
class |
Repeat
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
|
class |
StrictInstructionList
A list of instructions that doesn't include a function definition.
|
class |
Subtraction
Represents a subtraction (e.g., lhs - rhs)
|
class |
UnaryExpression
Represents a unary expression
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Instruction> |
StrictInstructionList.iterator()
Return an iterator for accessing all the instructions.
|
Modifier and Type | Method and Description |
---|---|
void |
StrictInstructionList.add(Instruction instruction)
Add an instruction to this list (FIFO order for execution).
|