This is a very rudimentary implementation for a language (compiler + VM) and accompanying application that allows you to draw in SVG by issuing specific commands.
It is very much inspired by the Logo language.
Some examples can be found here.
It is implemented purely in Javascript, running in a browser. No server code.
Refer to the application description and the language reference for more information about available functionality.
In order to build simply run npm run build
.
In order to test (unit tests) run npm test
.
To access the application, navigate to index.html
.
You can simply do this by using a local http server running in the application directory (e.g. http-server).
A running online example, though not necessarily up-to-date with recent development, should be available here.
The compiler is implemented using ohm-js.
The SVG manipulation is done using SVG.js
The application uses the monaco editor for the code editor.