> 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. It is used to print error 
messages, but one can also use it in the grammar:
%token this_key "this"
…
%%
…
this_rule:
  "this" …
;


Reply via email to