Re: yytname woes
"James K. Lowden" <[email protected]> Sat, 11 Nov 2023 20:23:50 -0500
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 12 Nov 2023 22:40:04 +0100 Hans =C5berg <[email protected]> wrote: > > On Nov 12, 2023, at 00:06, James K. Lowden > > <[email protected]> wrote: > >=20 > > 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. >=20 > Yes, and it is not needed in the actual parser.=20 I don't understand. Are you trying to help me or to debate me? =20 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). =20 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.=20 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. =20 Let's start, shall we, with "is it a bug"? =20 --jkl