This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]