help-bison
[Top][All Lists]
Advanced

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

Re: yytname woes


From: James K. Lowden
Subject: Re: yytname woes
Date: Sat, 11 Nov 2023 20:23:50 -0500

On Sun, 12 Nov 2023 22:40:04 +0100
Hans Åberg <haberg-1@telia.com> wrote:

> > On Nov 12, 2023, at 00:06, James K. Lowden
> > <jklowden@schemamania.org> wrote:
> > 
> > I think the purpose of the yytname array is simple: for each token
> > (that is not a character), it holds a string with the token's name.
> 
> Yes, and it is not needed in the actual parser. 

I don't understand.  Are you trying to help me or to debate me?  

I never said yytname was needed by the actual parser.  I said it is
needed by the programmer.  I find it useful for its stated purpose, to
produce useful messages. (I specifically use it for %printer).  

I have two answers from you attempting to tutor me about things I
already demonstrated I understand.  While I'm sure you don't intend to
waste your time or mine, that is what's happening. 

My yytname array is obviously messed up.  Whether or not it's needed by
the parser, whether or not ASCII characters can be used as tokens, is
immaterial.  

Let's start, shall we, with "is it a bug"?  

--jkl



reply via email to

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