316 |
yyprhs and yyrhs are needed only for yydebug. */ |
yyprhs and yyrhs are needed only for yydebug. */ |
317 |
/* With the no_parser option, all tables are generated */ |
/* With the no_parser option, all tables are generated */ |
318 |
if (!semantic_parser && !no_parser_flag) |
if (!semantic_parser && !no_parser_flag) |
319 |
obstack_sgrow (&table_obstack, "\n#if YYDEBUG != 0\n"); |
obstack_sgrow (&table_obstack, "\n#if YYDEBUG\n"); |
320 |
|
|
321 |
{ |
{ |
322 |
int i; |
int i; |
372 |
short *short_tab = NULL; |
short *short_tab = NULL; |
373 |
|
|
374 |
obstack_sgrow (&table_obstack, "\n\ |
obstack_sgrow (&table_obstack, "\n\ |
375 |
#if YYDEBUG != 0\n"); |
#if YYDEBUG\n"); |
376 |
|
|
377 |
{ |
{ |
378 |
short *values = XCALLOC (short, nrules + 1); |
short *values = XCALLOC (short, nrules + 1); |
400 |
/* Output the table of symbol names. */ |
/* Output the table of symbol names. */ |
401 |
if (!token_table_flag && !no_parser_flag) |
if (!token_table_flag && !no_parser_flag) |
402 |
obstack_sgrow (&table_obstack, |
obstack_sgrow (&table_obstack, |
403 |
"\n#if YYDEBUG != 0 || defined YYERROR_VERBOSE\n\n"); |
"\n#if (YYDEBUG) || defined YYERROR_VERBOSE\n\n"); |
404 |
obstack_sgrow (&table_obstack, "\ |
obstack_sgrow (&table_obstack, "\ |
405 |
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */\n"); |
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */\n"); |
406 |
obstack_sgrow (&table_obstack, |
obstack_sgrow (&table_obstack, |
1268 |
obstack_grow (&table_obstack, obstack_finish (&attrs_obstack), size); |
obstack_grow (&table_obstack, obstack_finish (&attrs_obstack), size); |
1269 |
} |
} |
1270 |
reader_output_yylsp (&table_obstack); |
reader_output_yylsp (&table_obstack); |
1271 |
if (debug_flag) |
obstack_fgrow1 (&table_obstack, "\ |
|
obstack_sgrow (&table_obstack, "\ |
|
1272 |
#ifndef YYDEBUG\n\ |
#ifndef YYDEBUG\n\ |
1273 |
# define YYDEBUG 1\n\ |
# define YYDEBUG %d\n\ |
1274 |
#endif\n\ |
#endif\n\ |
1275 |
\n"); |
\n", debug_flag); |
1276 |
|
|
1277 |
if (semantic_parser) |
if (semantic_parser) |
1278 |
obstack_fgrow1 (&table_obstack, "#include %s\n", |
obstack_fgrow1 (&table_obstack, "#include %s\n", |