X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/62c4328e008dd6dd68fb5ac2a7ed1b8790f81279..5cf61e933db01235b658733d1d9efcb81af7c6ca:/tests/torture.at?ds=sidebyside diff --git a/tests/torture.at b/tests/torture.at index b35052fc..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 <