Email or username:

Password:

Forgot your password?
Devine Lu Linvega

Still trying to turn the old Lispkit into a usable Lisp playground that's hosted on a 20ish opcodes virtual machine. I've implemented something like the PRINT opcode from the book, next I'll try READ so it can respond to keyboard input.
docs: wiki.xxiivv.com/site/lisp
vm: git.sr.ht/~rabbits/lispkit/tre

Documentation on XXIIVV that reads: "Prefixing the WRITE expression with the :cli symbol routes the expression to the Command Line Interface, which handles printing text. The #\Newline sybol gets converted to a linebreak during printing."
2 comments
Devine Lu Linvega

The fib program compiles to the following SECD code:

(6 2 NIL 3 (2 NIL 2 #\Newline 13 1 (0.0) 13 2 :cli 13 26 5) 13 3 (1 (0.0) 2 0 14 8 (2 0 9) (1 (0.0) 2 1 14 8 (2 1 9) (2 NIL 1 (0.0) 2 1 16 13 1 (1.1) 4 2 NIL 1 (0.0) 2 2 16 13 1 (1.1) 4 15 9) 9) 5) 13 3 (2 NIL 2 NIL 1 (0.0) 13 1 (1.1) 4 13 1 (1.2) 4 5) 13 3 (1 (0.0) 5) 7 4 21)

Go Up