Linked by Thom Holwerda on Fri 25th Aug 2006 09:03 UTC, submitted by anonymous
General Development Adam Dunkels, well-known author of the Contiki operating system and the uIP embedded TCP/IP stack, has written a really small BASIC interpreter called uBASIC in about 700 lines of C code. It is intended to be a very small scripting language for systems where memory really is at a premium such as deeply embedded systems which may have as little as a few hundreds of bytes of RAM. It provides an interesting look into how to write a very lightweight script interpreter.
Permalink for comment 156133
To read all comments associated with this story, please click here.
RE: Bloatware
by evangs on Sat 26th Aug 2006 19:01 UTC in reply to "Bloatware"
evangs
Member since:
2005-07-07

My eyes! They burn! Never understood what drove people to submit programs to the IOCCC. Must be have some sadistic streak in them. ;)

The code posted in the original article reminds me of the C interpreter I wrote during my undergraduate years. It's simple, it's straight forward, though I imagine BASIC is an easier language to parse than C since you have less overloaded constructs (the operator * for example).

Reply Parent Bookmark Score: 1