30 |
|
|
31 |
%{ |
%{ |
32 |
#include "system.h" |
#include "system.h" |
33 |
|
#include "complain.h" |
34 |
#include "muscle_tab.h" |
#include "muscle_tab.h" |
35 |
#include "files.h" |
#include "files.h" |
36 |
#include "getargs.h" |
#include "getargs.h" |
339 |
rules_or_grammar_declaration: |
rules_or_grammar_declaration: |
340 |
rules |
rules |
341 |
| grammar_declaration ";" |
| grammar_declaration ";" |
342 |
|
{ |
343 |
|
if (yacc_flag) |
344 |
|
complain_at (@$, _("POSIX forbids declarations in the grammar")); |
345 |
|
} |
346 |
|
| error ";" |
347 |
|
{ |
348 |
|
yyerrok; |
349 |
|
} |
350 |
; |
; |
351 |
|
|
352 |
rules: |
rules: |
462 |
gram_error (gram_control_t *control ATTRIBUTE_UNUSED, |
gram_error (gram_control_t *control ATTRIBUTE_UNUSED, |
463 |
location_t *yylloc, const char *msg) |
location_t *yylloc, const char *msg) |
464 |
{ |
{ |
465 |
LOCATION_PRINT (stderr, *yylloc); |
complain_at (*yylloc, "%s", msg); |
|
fprintf (stderr, ": %s\n", msg); |
|
466 |
} |
} |