C/C++ front-end extension a la SWIG?

Andi Kleen ak@suse.de
Thu Jun 29 11:58:00 GMT 2000


thi <ttn@revel.glug.org> writes:

>    From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>    Date: Thu, 29 Jun 2000 09:40:24 +0200
> 
>    In my opinion, separating the C++ front-end from gcc is pointless.
>    What you get is more or less the parser, and the g++ parser is not
>    something you want to use unless you really have to.  There are a
>    number of other good C++ parsers - I'd consider those first if I
>    needed one for a project.
> 
> any particular recommendations?

OpenC++ and the Tendra C++ frontend look reasonably clean (the later is writen
using a strange lexer/parser generator though) OpenC++ uses a bison parser, but
it seems to use much less hacks than the g++ frontend to parse the difficult
parts in C++'s syntax.

Both do not parse all g++ language extensions.


-Andi 



More information about the Gcc mailing list