Skip to content

Everyone has to implement a Lisp at least once, right?

Notifications You must be signed in to change notification settings

samnaughtonb/my-first-lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-first-lisp

Everyone has to implement a Lisp at least once, right?

This project is based on the excellent pedagogical essays of Stepan Parunashvili and Peter Norvig, in Rust and Python respectively.

In contrast to the above, I'm using the LR(1) parser generator framework, LALRPOP, as I'm too lazy to write a parser myself (despite it being really easy for S-expressions.)

Fibonacci example.

(def fib (fn (n)
  (if (= n 0) 0
      (if (= n 1) 1
          (+ (fib (- n 1))
             (fib (- n 2)))))))

About

Everyone has to implement a Lisp at least once, right?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages