X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/040984073a54b4c603172be3c3f44b908ea5deb9..2781dbd121848b23bfe6855cc001752471b74323:/tests/torture.at diff --git a/tests/torture.at b/tests/torture.at index 16425f6a..ff373c21 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -50,13 +50,12 @@ my $max = $ARGV[0] || 10; print < #include -#define YYERROR_VERBOSE 1 -#define YYDEBUG 1 - static int yylex (void); static void yyerror (const char *msg); %} @@ -166,24 +165,25 @@ my $max = $ARGV[0] || 10; print < #include -#define YYERROR_VERBOSE 1 -#define YYDEBUG 1 - static int yylex (void); static void yyerror (const char *msg); %} -EOF +%token +EOF for my $size (1 .. $max) { - print "%token t$size $size \"$size\"\n"; + print " t$size $size \"$size\"\n"; }; print < -#include - -#define YYERROR_VERBOSE 1 -#define YYDEBUG 1 +# include +# include +# include static int yylex (void); static void yyerror (const char *msg); @@ -295,25 +295,26 @@ print map { "n$_" } (1 .. $max)), "\n"; +print "%token\n"; for my $count (1 .. $max) { - print "%token t$count $count \"$count\"\n"; + print " t$count $count \"$count\"\n"; }; print <