help-bison
[Top][All Lists]
Advanced

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

Re: yytname woes


From: Hans Åberg
Subject: Re: yytname woes
Date: Sat, 11 Nov 2023 18:03:59 +0100

On Nov 10, 2023, at 01:57, James K. Lowden <jklowden@schemamania.org> wrote:
> 
> I can't seem to look up token names in yytname correctly using enum
> yytokentype.
…
> When I look up #899, NOT, I get "NOT".  But when I look up #900, NE, I
> get "'<'" because that's the next element in yytname (900 - 255).

In Bison, being compatible with POSIX Yacc, it is allowed use characters as 
token numbers, so those numbers are reserved for that purpose.





reply via email to

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