This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Repository navigation
release-0.2
This release contains an example of embedding the interpreter into some random code:
- The file embed/main.go does a couple of things:
- Defines a
DOTfunction implemented in go that will set a pixel on a PNG canvas - Defines a
SAVEfunction to write out that pixel - It also defines PEEK & POKE functions, which are less impressive.
- Defines a
Otherwise there are some new primitives RND, PI, SQT, etc. These primitives are implemented using the extension-mechanism the embedded example demonstrated.
The final remaining new feature was the migration to storing variables as float64 rather than int, which was necessary to store values such as π.