tags:

views:

828

answers:

4
+4  Q: 

LISP Parser C++

Is there an existing LISP parser written in C++? I just want the parser, not a full interpreter, but an interpreter to go along with it would be a plus.

+3  A: 

Lisp is just a tree structure, any tree parser will parse lisp readily... you can try this one which google gave me.

dsm
In fact, the Common Lisp I write looks almost exactly like the parse trees I built in compilers class.
David Thornley
You can parse a subset of it easily. But the real thing involves more data-structures than just symbols and lists.
Luís Oliveira
He did mention he wanted a parser, not a full interpreter
dsm
A: 

Chicken scheme is written in C, close enough? http://www.call-with-current-continuation.org/

Flinkman
+1  A: 

Bigloo might be useful here.

Ken
+1  A: 

XCL is an implementation of Common Lisp whose runtime is written in C++. The compiler is written in Lisp but it has an interpreter written in C++ which is used for bootstrapping.

Luís Oliveira