53 |
/* Exercise pre-prologue dependency to %union. */ |
/* Exercise pre-prologue dependency to %union. */ |
54 |
typedef int value_t; |
typedef int value_t; |
55 |
|
|
56 |
value_t global_result = 0; |
static value_t global_result = 0; |
57 |
int global_count = 0; |
static int global_count = 0; |
58 |
|
|
59 |
%} |
%} |
60 |
|
|
146 |
; |
; |
147 |
%% |
%% |
148 |
/* The input. */ |
/* The input. */ |
149 |
FILE *yyin; |
static FILE *yyin; |
150 |
|
|
151 |
static void |
static void |
152 |
yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[ |
yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[ |
291 |
{ |
{ |
292 |
value_t result = 0; |
value_t result = 0; |
293 |
int count = 0; |
int count = 0; |
294 |
int status = 0; |
int status; |
|
yyin = NULL; |
|
295 |
|
|
296 |
if (argc == 2) |
if (argc == 2) |
297 |
yyin = fopen (argv[1], "r"); |
yyin = fopen (argv[1], "r"); |