[Top][All Lists]

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

Re: incorrect yychar for unambiguous GLR

From: Joel E. Denny
Subject: Re: incorrect yychar for unambiguous GLR
Date: Mon, 30 Jan 2006 15:11:03 -0500 (EST)

On Mon, 30 Jan 2006, Paul Eggert wrote:

> "Joel E. Denny" <address@hidden> writes:
> > I just noticed that this changes yyrawchar from int to short.  I'm not 
> > smart enough to know if this matters.
> yyrawchar is what yylex returned, right?  If so, it must be int, since
> users can specify token numbers greater than 2**16.

OK, so we shouldn't commit this optimization of yySemanticOption.

So, token numbers might be greater than 2^16 (int yyrawchar), but the 
number of tokens cannot be greater than 2^16 (short yytoken).

I think I finally get it.


reply via email to

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