]> git.saurik.com Git - bison.git/commitdiff
(Torturing the Scanner): Don't use \x0 or \0 in
authorPaul Eggert <eggert@twinsun.com>
Wed, 24 Dec 2003 08:17:05 +0000 (08:17 +0000)
committerPaul Eggert <eggert@twinsun.com>
Wed, 24 Dec 2003 08:17:05 +0000 (08:17 +0000)
Bison tokens, as this runs afoul of the 2003-10-07 change that
disallowed NUL bytes in character constants or string literals.

tests/input.at

index 935e74cad18167ae8f1fe1e5e902feb7eff40374..4b3e4e21280ada79fd290b5857aae69bf883f6bc 100644 (file)
@@ -167,7 +167,7 @@ static int yylex (void);
 %type <ival> '@<:@'
 
 /* Exercise quotes in strings.  */
 %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.  */
 
 %%
 /* Exercise M4 quoting: '@:>@@:>@', @<:@, 1.  */