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.
Thread beginning with comment 155794
To read all comments associated with this story, please click here.
Bloatware
by JamesW on Fri 25th Aug 2006 11:11 UTC
JamesW
Member since:
2006-03-29

I use the 25 line dds.c - http://www.ioccc.org/1990/dds.c - from the 1990 ioccc competition for all my BASIC needs.

Also: 'a very small scripting language for systems where memory really is at a premium'. Didn't some guys called Gates and Allen do something similar a few years back?

--
10 PRINT "JamesW Rules ";: GOTO 10

RE: Bloatware
by evangs on Sat 26th Aug 2006 19:01 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