* src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser

internals.
* src/reader.h, src/reader.c (grammar_current_rule_prec_set):
Takes a location.
* src/symtab.h, src/symtab.c (symbol_class_set)
(symbol_user_token_number_set): Likewise.
Adjust all callers.
Promote complain_at.
* tests/input.at (Type Clashes): Adjust.
This commit is contained in:
Akim Demaille
2002-06-20 11:10:56 +00:00
parent 5c1180b3c4
commit e776192e4f
12 changed files with 213 additions and 204 deletions

View File

@@ -82,10 +82,10 @@ AT_CLEANUP
## -------------- ##
## Type clashes. ##
## Type Clashes. ##
## -------------- ##
AT_SETUP([Type clashes])
AT_SETUP([Type Clashes])
AT_DATA([input.y],
[[%token foo
@@ -98,9 +98,9 @@ exp: foo {} foo
]])
AT_CHECK([bison input.y], [1], [],
[[input.y:5: type clash (`bar' `') on default action
input.y:6: type clash (`bar' `') on default action
input.y:7: empty rule for typed nonterminal, and no action
[[input.y:4.4-15: type clash (`bar' `') on default action
input.y:5.4-8: type clash (`bar' `') on default action
input.y:6.4: empty rule for typed nonterminal, and no action
]])
AT_CLEANUP