help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to change name of enum yytokentype?


From: Joel E. Denny
Subject: Re: Possible to change name of enum yytokentype?
Date: Fri, 10 Feb 2006 18:10:31 -0500 (EST)

On Fri, 10 Feb 2006, Frans Englich wrote:

> On Friday 10 February 2006 17:13, Frans Englich wrote:
> > Hi all,
> >
> > Is it possible to change the name of the yytokentype enum? In my case, I
> > would rather have it named TokenType. What is the easiest way of achieving
> > that?

Would a simple typedef serve your purpose?

> Also, why is the defines provides in addition to the enum?

For POSIX yacc.

> In this way one 
> cannot actually use the enum since the defines kicks in. Is there anyway to 
> make it not put the defines there, but only the enum?

We've been discussing getting rid of the #define's when not using --yacc, 
but nothing has been decided yet.  You could try writing a sed script in 
the meantime.

Joel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]