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
2009-09-01 12:35:11
In fact, the Common Lisp I write looks almost exactly like the parse trees I built in compilers class.
David Thornley
2009-09-01 19:44:41
You can parse a subset of it easily. But the real thing involves more data-structures than just symbols and lists.
Luís Oliveira
2009-09-02 02:02:24
He did mention he wanted a parser, not a full interpreter
dsm
2009-09-02 08:28:13
A:
Chicken scheme is written in C, close enough? http://www.call-with-current-continuation.org/
Flinkman
2009-09-01 19:31:54
+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
2009-09-02 02:00:17