(Torturing the Scanner): Don't use \x0 or \0 in

Bison tokens, as this runs afoul of the 2003-10-07 change that
disallowed NUL bytes in character constants or string literals.
This commit is contained in:
Paul Eggert
2003-12-24 08:17:05 +00:00
parent eecf08fe94
commit 3dc4c5faa9

View File

@@ -167,7 +167,7 @@ static int yylex (void);
%type <ival> '@<:@'
/* Exercise quotes in strings. */
%token FAKE "fake @<:@@:>@ \a\b\f\n\r\t\v\"\'\?\\\u005B\U0000005c ??!??'??(??)??-??/??<??=??> \x0\0"
%token FAKE "fake @<:@@:>@ \a\b\f\n\r\t\v\"\'\?\\\u005B\U0000005c ??!??'??(??)??-??/??<??=??> \x1\1"
%%
/* Exercise M4 quoting: '@:>@@:>@', @<:@, 1. */