[Cowlark Logo] cowlark.com

baZic

a minimal Basic interpreter for the Z-machine

One day in early 2001 I suffered a mental breakdown and decided to write a Basic interpreter for the Z-machine. At least, I think I suffered a mental breakdown; I can't think of any other reason why I would want to do that.

By the time I recovered, baZic (as I called it) was mostly finished. It features:

What it doesn't feature: I am unlikely ever to finish this; the Basic language is just too annoying for words. It's even more annoying to implement than to write in. (It uses the Parser from Hell.) If you wish to continue it, be my guest.

baZic is written in 100% Inform code. It does, however, make certain horrible assumptions about the memory map that means it's unlikely to compile for the Glulx platform. It is mostly useful as an example of just what you can do on the Z-machine if you bend it sufficiently. Oh, and the memory allocator and garbage collector are modular and can be easily ripped out and reused if you are so inclined.

The program is licensed under the MIT open source license. The full text is available in the source package.


Comments on this page

Page last updated: 2008 August 12 © 2008-2009 David Given, unless specified otherwise