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?


On Thu, Jun 29, 2000 at 12:21:55PM -0700, Daniel Berlin wrote:
> > 
> > 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

Not the version I have here:

 -rw-r--r--   chiba/parc      38678 openc++-2.3/src/parser.y


It is still a relatively nice parser (the backtracing via the lexer is not too
complicated) 


-Andi

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