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?


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

That version is quite a few years old.
Try 2.5.8, just released 6/26

/*
   C++ Parser

   This parser is a LL(k) parser with ad hoc rules such as
   backtracking.

   r<name>() is the grammer rule for a non-terminal <name>.
   opt<name>() is the grammer fule for an optional non-terminal <name>.
   is<name>() looks ahead and returns TRUE if the next symbol is <name>.
*/


> 
> 
> -Andi
> 


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