Re: writing a C compiler in Common Lisp
- From: Juliusz Chroboczek <jch@xxxxxxxxxxxxxx>
- Date: Mon, 11 Apr 2005 14:41:42 +0200
> Second, it's rather heavy - lots of .el files. I want something
> lighter, like CL-YACC (started looking at it too, looks good so far).
Well, I wrote CL-Yacc exactly for that reason -- I needed to parse C.
I've ripped out the lexer, parser and pretty-printer from my current
development sources and put them on
http://www.pps.jussieu.fr/~jch/software/files/cpc-parser-20050411.tar.gz
You are welcome to use this code in any way you see fit. I would
appreciate it, however, if you could make sure to credit me as the
original author in the documentation of any software that uses these
sources.
And Steven H. is right -- parsing C is a pain.
This is most definitely work in progress; while a variant of this code
has successfully parsed a few thousands lines of C, it is known to be
incomplete and buggy. Of course, I'm interested in any fixes you may
want to send me.
Enjoy,
Juliusz Chroboczek
.
- References:
- writing a C compiler in Common Lisp
- From: Eli Bendersky
- Re: writing a C compiler in Common Lisp
- From: Ulrich Hobelmann
- Re: writing a C compiler in Common Lisp
- From: smitty_one_each
- Re: writing a C compiler in Common Lisp
- From: Eli Bendersky
- writing a C compiler in Common Lisp
- Prev by Date: Re: The Amazon PCL tide may be heading back out to sea
- Next by Date: Statistics for comp.lang.lisp
- Previous by thread: Re: writing a C compiler in Common Lisp
- Next by thread: Re: writing a C compiler in Common Lisp
- Index(es):