This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: c++ add rid entries for choose_expr and types_compatible_p


On Sun, Dec 09, 2001 at 09:03:25AM +0000, Neil Booth wrote:
> Aldy Hernandez wrote:-
> 
> > from cp/lex.c and c-parse.in:
> > 
> >     /* Table mapping from RID_* constants to yacc token numbers.
> >        Unfortunately we have to have entries for all the keywords in all
> >        three languages.  */
> 
> And yet they are maintained separately.  It would be nice to find a
> way of putting this stuff in one place; I don't believe it is impossible.

Only if you somehow manage to convince bison to generate identical
token numberings for two different grammars.

The whole problem vanishes on the cp-parser-branch, which can use
cpplib's token numbers for most things, and RID_* constants for the
rest.

zw


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