funkyj <funkyj@gmail.com> wrote:
+---------------
| At work the mandate is that we write all our code in C.
| I've sometimes thought about using lisp to create my own
| more powerful preprocessor for C so that I could satisfy the
| mandate (use C) while getting some of the power of lisp.
+---------------
Check out Aubrey Jaffer's "Schlep":
http://www.swiss.csail.mit.edu/~jaffer/Docupage/schlep.html
Yes, it's in Scheme, not CL, and uses Hungarian-suffixed variables
rather than real type declarations, but you may find it useful,
at least for study. In particular:
Using Scheme files as source, schlep produces texinfo
documentation and formatted C code preserving comments;
and type, function, and variable names as much as possible.
The output from schlep is human-readable and often forms
the base for further development in C; abandoning the original
Scheme source.
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607