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 7:28

Fun note: despite adding 16-odd lines for the closures, the code is still 10 lines shorter overall because I removed the cruft that was meant for an over-engineered builtins system.

Name: Anonymous 2015-03-26 7:29

Fun note: despite adding 16-odd lines for the closures, the code is still 10 lines shorter overall because I removed the cruft that was meant for an over-engineered builtins system.

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