On Sun, 12 Nov 2023 22:40:04 +0100 Hans Åberg <haber...@telia.com> wrote:
> > On Nov 12, 2023, at 00:06, James K. Lowden > > <jklow...@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