Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Lisp is better at parsing?

Tags:

I'd like to implement a Lisp interpreter in a Lisp dialect mainly as a learning exercise. The one thing I'm thrown off by is just how many choices there are in this area. Primarily, I'm a bit more interested in learning about some of the Lisps that have been around a while (like Scheme or Common Lisp). I don't want to use Clojure to do this for the sheer fact that I've already used it. :-)

So is one of the flavors any better than the others at parsing? And do you think it's a good idea to say implement Scheme in Common Lisp (or vice versa)? Or will there be enough differences between the two to throw me off?

And if it makes any difference, I'd like something that's cross-platform. I have a Windows PC, a Mac, and a Linux box, and I could end up writing this on any of them.

like image 679
Jason Baker Avatar asked Aug 23 '09 14:08

Jason Baker


1 Answers

There are some books about that:

  • SICP chapter 4 and 5
  • PAIP, chapter 5
  • LiSP, the whole book explains implementing Lisp
  • Anatomy of Lisp, old classic about implementing Lisp

All of the above books are highly recommended, though Anatomy of Lisp is oldish, hard to get and hard to read.

Both Scheme and Common Lisp are fine for your task.

Implementing Common Lisp is a larger task, since the language is larger. Usually one implements Common Lisp better in Common Lisp, since there are Common Lisp libraries that can be used for new Common Lisp implementations. ;-)

like image 115
Rainer Joswig Avatar answered Oct 12 '22 01:10

Rainer Joswig