This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++ front-end extension a la SWIG?
- To: Andi Kleen <ak at suse dot de>
- Subject: Re: C/C++ front-end extension a la SWIG?
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Thu, 29 Jun 2000 12:21:55 -0700 (PDT)
- cc: thi <ttn at revel dot glug dot org>, gcc at gcc dot gnu dot org
>
> 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.
>
Um, what?
OpenC++ uses a hand coded, very nice, LL(k) (k= mostly 1, occasionally
2) C++ parser.
It's acutally a great example of how to hand code a C++ parser.
TEndra uses their own parser generateor, which is very difficult to
understand.
>
> -Andi
>