AT_DATA_GRAMMAR([glr-regr9.y],
[[
%{
- #include <stdio.h>
- #include <stdlib.h>
+# include <stdio.h>
+# include <stdlib.h>
static void yyerror (char const *);
static int yylex (void);
- #define YYSTACKEXPANDABLE 0
+# define YYSTACKEXPANDABLE 0
static int tokens = 0;
static int destructors = 0;
+# define USE(Var)
%}
%glr-parser
%%
start:
- ambig0 'a' { destructors += 2; }
+ ambig0 'a' { destructors += 2; USE ($2); }
| ambig1 start { destructors += 1; }
| ambig2 start { destructors += 1; }
;