Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple compiler/translator for experimenting

0 views
Skip to first unread message

budden

unread,
Dec 17, 2009, 11:47:51 AM12/17/09
to
Hi List!
I would like to get a simple compiler/translator. I want it to
compile subset of a lisp to C and written in CL itself. Maybe it could
be statically typed. What is most important, it should be as compact
as possible. Any ideas/suggestions?

Richard Fateman

unread,
Dec 17, 2009, 2:09:33 PM12/17/09
to

Read norvig's Paradigms of AI Programming.
You will get an interpreter and compiler for Scheme into Assembler. And
a machine simulator.
But you could generate C.

Compact too.

Pillsy

unread,
Dec 17, 2009, 2:40:36 PM12/17/09
to

Among other things, Quiennec's /Lisp in Small Pieces/ contains a
compiler from Scheme to C. It's written in Scheme rather than CL, but
I don't think it would be that hard to use as a basis for the project
you describe. It uses a custom system for doing OO in Scheme, but the
system is basically a CLOS subset (no multimethods or single
inheritance).

I haven't worked through the book nearly as thoroughly as I would
like, but it contains a wealth of information about interpreting and
compiling Lisp.

Cheers,
Pillsy

Rahul Jain

unread,
Dec 17, 2009, 4:14:11 PM12/17/09
to
budden <budde...@mail.ru> writes:

Thinlisp

--
Rahul Jain
rj...@nyct.net
Professional Software Developer, Amateur Quantum Mechanicist

ddd

unread,
Dec 18, 2009, 8:32:32 AM12/18/09
to

Not CL, but quite nice is the SCM scheme compiler to C called hobbit.
http://people.csail.mit.edu/jaffer/SCM
http://people.csail.mit.edu/jaffer/hobbit_toc.html

0 new messages