bug-bison
[Top][All Lists]
Advanced

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

yytname ' & " character codes


From: Hans Aberg
Subject: yytname ' & " character codes
Date: Sat, 30 Dec 2000 20:12:17 +0100

Isn't the following a bug:

If one in the .y on file uses
  '\"' or '"',  it shows up as "'\\\"'"
  '\'', it shows up as "'\\''"
in the yytname array.

Wouldn't one expect that these be printed in the .c file that when yytname
is compiled, one gets back the original character codes?

Then '\"' should be printed as "'\"'", and '\'' should be printed as "'\''"
or "'''".

-- If one should use the yytname and similar tables for lookups, not only
printing, then it seems reasonable to store character codes on the binary
format
  '<byte>'
as one then knows that the second byte is always the character code one is
looking for.

  Hans Aberg





reply via email to

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