From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen To: thi Cc: gcc@gcc.gnu.org Subject: Re: C/C++ front-end extension a la SWIG? Date: Thu, 29 Jun 2000 11:58:00 -0000 Message-id: References: <200006290021.RAA31270@revel.glug.org> <200006290740.JAA00956@loewis.home.cs.tu-berlin.de> <200006291544.IAA32009@revel.glug.org> X-SW-Source: 2000-06/msg00762.html thi writes: > From: "Martin v. Loewis" > 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