Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lisp is fun!

Name: Alexander Dubček 2015-03-24 6:14

I wrote a toy Lisp interpreter this weekend. Programming is pretty much a video game!

https://bitbucket.org/dhoskin/thp

(LET ((f (LAMBDA (x) (IF (x (f (CDR x))) recursion!))))
(f (QUOTE (a b c d e))))

→ args: ((a b c d e))
→ args: ((b c d e))
→ args: ((c d e))
→ args: ((d e))
→ args: ((e))
→ args: (nil)
→ recursion!

Name: Anonymous 2015-03-26 11:42

>>22-26
Outstanding.

I've updated the Unix port and posted it here:
http://pastebin.com/dLz29jkC

Interestingly, in the C lambda function (on line 297), only the closure block is executed, never the lambda block. The printf on line 321 never happens, only the printf on line 314.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List