So my previous post described a BASIC interpreter I'd written.
Before the previous release I decided to ensure that it was easy to embed, and that it was possible to extend the BASIC environment such that it could call functions implemented in golang.
One of the first things that came to mind was to allow a BASIC script to plot pixels in a PNG. So I made that possible by adding "PLOT x,y" and "SAVE" primitives.
Taking that step further I then wrote a HTTP-server which would allow you to enter a BASIC program and view the image it created. It's a little cute at least.
Install it from source, or fetch a binary if you prefer, via:
$ go get -u github.com/skx/gobasic/goserver
Then launch it and point your browser at http://localhost:8080, and you'll be presented with something like this:
Tags: basic, golang, interpreter 2 comments
Magnificent effort, Steve! I'm an 'old fart' brought up on basic in various 'flavours'. Having owned Sinclair QLs, I'd love to encounter a moderrn-machine interpreter for its SuperBasic - particularly to run Stellaris (QL World June 1987), a strategy game.