Re: Verrazano/CFFI R.I.P.?
- From: "Marc Battyani" <Marc.Battyani@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 22:54:17 +0100
"Kenny Tilton" <NOktiltonSPAM@xxxxxxxxxx> wrote
>
> Just started working on a C to Lisp translator, using Antlr.
[...]
> Or know a better way than Antlr? gcc_xml does not do function bodies.
Do it in Lisp. Juliusz Chroboczek has written cl-yacc and a C parser in Lisp just for
that:
Juliusz Chroboczek wrote:
>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
That link does not work anymore but you can ask Juliusz Chroboczek for a recent version.
(IIRC I have a copy somewhere)
>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.
Marc
.
- Follow-Ups:
- Re: Verrazano/CFFI R.I.P.?
- From: Brian Downing
- Re: Verrazano/CFFI R.I.P.?
- References:
- Verrazano/CFFI R.I.P.?
- From: Kenny Tilton
- Verrazano/CFFI R.I.P.?
- Prev by Date: Re: conciseness is power
- Next by Date: ;dot context error
- Previous by thread: Verrazano/CFFI R.I.P.?
- Next by thread: Re: Verrazano/CFFI R.I.P.?
- Index(es):
Relevant Pages
|