Timo K Suoranta <tksuoran@cc.helsinki.fi> wrote:
+---------------
| Anyone know a good book about implementing (more) complete
| Scheme with C/C++ ?
+---------------
If you're heading down that path, IMHO this book is absolutely essential
reading (despite the title, it's really about Scheme [mostly]):
"Lisp in Small Pieces", by Christian Queinnec
[Originally in French as "Les Langages Lisp".]
<URL:http://youpou.lip6.fr/queinnec/WWW/LiSP.html>
<URL:http://shop.barnesandnoble.com/booksearch/
isbnInquiry.asp?isbn=0521562473>
He goes into extensive detail in presenting various options for
representing environments & lexical variables, code (at various
levels of interpretation and compilation), closures, stacks,etc.
See the first URL for the code from the book. He's also extended
his code generators to target Java in addition to C:
<URL:http://youpou.lip6.fr/queinnec/Java/Java.html>
(I know, it's not C++, but it may give you some ideas.)
-Rob
-----
Rob Warnock, 31-2-510 rpw3@sgi.com
Network Engineering http://reality.sgi.com/rpw3/
Silicon Graphics, Inc. Phone: 650-933-1673
1600 Amphitheatre Pkwy. PP-ASEL-IA
Mountain View, CA 94043