help-bison
[Top][All Lists]
Advanced

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

Re: Enum for token '0', EOF


From: Joel E. Denny
Subject: Re: Enum for token '0', EOF
Date: Sat, 8 Jul 2006 11:08:49 -0400 (EDT)

On Sat, 8 Jul 2006, Frans Englich wrote:

> No, I don't have a need to put END in my grammar nor give it a semantic 
> value, 

I can't think of a need either.  The results look buggy with the current 
implementation, so maybe Bison should report an error for this usage.

> but I need to signal it in my hand written tokenizer(and it is messy to cast 
> 0 to the yytokentype enum).

I'm guessing this feature was originally intended for no more than just 
that (and giving the end token a user-friendly string alias).

Thanks.

Joel




reply via email to

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