* src/parse-gram.y (rules_or_grammar_declaration): Add an error

recovery rule, and forbid extensions when --yacc.
(gram_error): Use complain_at.
* src/reader.c (reader): Exit if there were parse errors.
This commit is contained in:
Akim Demaille
2002-07-09 14:48:01 +00:00
parent c5f5043618
commit b275314e2d
5 changed files with 209 additions and 174 deletions

View File

@@ -128,7 +128,7 @@
#ifndef YYSTYPE
#line 88 "parse-gram.y"
#line 89 "parse-gram.y"
typedef union {
symbol_t *symbol;
symbol_list_t *list;
@@ -136,7 +136,7 @@ typedef union {
char *string;
associativity assoc;
} yystype;
/* Line 1271 of /home/lrde/prof/akim/src/bison/data/yacc.c. */
/* Line 1271 of /usr/local/share/bison/yacc.c. */
#line 141 "y.tab.h"
# define YYSTYPE yystype
#endif