At 01:17 -0700 2005/04/17, Paul Eggert wrote:
+* When generating verbose diagnostics, Bison-generated C parsers no longer
+  quote the literal strings associated with tokens.  For example, for
+  a syntax error associated with '%token NUM "number"' they might
+  print 'syntax error, unexpected number' instead of 'syntax error,
+  unexpected "number"'.

My guess is that the change causes in general %token <name> "<string>", the <string> to be interpreted as a C-encoded string, and outputs the way C outputs them. This is the simplest way, and also what I suggested. Perhaps the comment above should have an addition, clarifying that, as well.
--
Hans Aberg





Reply via email to