nanoforth - a totally stripped down forth kernel ^

Its intended to investigate dynamic compilation. It can read one line of code and understands:

 +  add
 -  sub
 \d a number (single digit only)
 . print
 : x  compile single-letter word x
 ; end compile

This code uses the same compile/call scheme as Dan's languages/forth compiler and is therefor equally broken. The jsr opcode does not allow to branch into different code segments, or better it works only if bounds checking is disabled.


parrot