]> git.saurik.com Git - bison.git/commit
* src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
authorAkim Demaille <akim@epita.fr>
Sat, 15 Jun 2002 18:21:11 +0000 (18:21 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 15 Jun 2002 18:21:11 +0000 (18:21 +0000)
commit8efe435c059af57671105fd8671ba97bb8474264
tree8767eb3ff0f7f4ccb0a573ecbcb93d58768c762b
parent4f6bb8b24bf3f7a373c873528d95cc30898f8cc3
* src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
(input): Don't try to initialize yylloc here, do it in the
scanner.
* src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
* src/gram.h (rule_t): Change line and action_line into location
and action_location, of location_t type.
Adjust all dependencies.
* src/location.h, src/location.c (empty_location): New.
* src/reader.h, src/reader.c (grammar_start_symbol_set)
(grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
(grammar_current_rule_symbol_append)
(grammar_current_rule_action_append): Expect a location as argument.
* src/reader.c (grammar_midrule_action): Adjust to attach an
action's location as dummy symbol location.
* src/symtab.h, src/symtab.c (startsymbol_location): New.
* tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
the line numbers.
28 files changed:
ChangeLog
po/de.po
po/es.po
po/et.po
po/fr.po
po/hr.po
po/it.po
po/ja.po
po/nl.po
po/ru.po
po/sv.po
po/tr.po
src/Makefile.am
src/gram.h
src/location.c [new file with mode: 0644]
src/location.h
src/output.c
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/print.c
src/reader.c
src/reader.h
src/scan-gram.c
src/scan-gram.l
src/symtab.c
src/symtab.h
tests/regression.at