Re: yytname woes
"James K. Lowden" <[email protected]> Sun, 12 Nov 2023 12:18:24 -0500
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 13 Nov 2023 10:52:02 +0100 Hans =C5berg <[email protected]> wrote: > > Let's start, shall we, with "is it a bug"? =20 >=20 > The parser knows how to translate token numbers into names for error > messages, but there is no API for that as far as I know. I disagree. Bison might know how to do that, but "the parser" does not. Bison is a parser-generator. I'm writing "the parser" using Bison. I implemented yyerror(). I'm producing the error message using the only vehicle I've found, yytname. It's insufficient to the purpose. =20 I now count 4 nonanswers to any of my questions. I ask again:=20 Is it a bug? =20 If my yytname array is not malformed, how can it be used? If it cannot be used, then it is too kind to call it merely "obsolescent". =20 I'm not asking to be annoying. I'm asking to be polite, to make sure I didn't miss anything before reporting a bug. If no one here knows, I'll report it as a bug, and sort things out there. =20 --jkl