Tokens
Token | Type | Interpretation |
---|---|---|
A-Z | Movement | Moves the turtle forward one step unit, drawing a line. |
a-z | Movement | |
+ | Rotation | Rotates the turtle to the left by the rotation unit. |
- | Rotation | Rotates the turtle to the right by the rotation unit. |
[ | State | Pushes the turtle's current location and rotation to the stack. |
] | State | Pops and restores the turtle's location and rotation from the stack. |
Invalid | Invalid tokens are treated as part of the a-z A-Z class, and thus have the same functionality. |