This is a very basic implementation of the [Logo Language](https://en.wikipedia.org/wiki/Logo_(programming_language) using the Antlr4 parser generator. The Logo programs are parsed based on the Logo Grammar and visualized in a JavaFX UI
The grammar and this program's capabilities are not a full Logo Language implementation. The basic expressions that are supported are:
forward ${points}
: Move forward x pointsback ${points}
: Move backward x pointsright ${degrees}
: Turn right x degreesleft ${degrees}
: Turn left x degreesset ${x},${y}
: Sets the turtle on point (x,y)clearscreen
: Clear the canvaspenUp
: The pen is up hence cannot draw to the canvaspenDown
: The pen is down ready to draw to the canvasresetAngle
: Resets the turtle's direction angle to 0 degrees which is effectively facing east
An example of a simple Hello World
logo program can be found at HelloWorld.logo
The UI can be launched by invoking TurtleRunner and it will automatically load the example file. Running the demo program will produce an animation like the below:
- User can type a logo program in the text area
- User can load a logo program from
File->Open...
- The slider determines the drawing animation speed