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?


> 
> 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 
> 


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