]> git.saurik.com Git - bison.git/commit - ChangeLog-2012
* src/symtab.h, src/symtab.c (symbol_t): printer and
authorAkim Demaille <akim@epita.fr>
Thu, 20 Jun 2002 09:08:37 +0000 (09:08 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 20 Jun 2002 09:08:37 +0000 (09:08 +0000)
commit366eea36d3a9aaccf80a78c2fcd8c3cd6b563e25
treee5986db96f7ae40e5f4d3c79a24fe0c932db609b
parent1ce5149ac8ffb10e03301661ac3abcc39de31702
* src/symtab.h, src/symtab.c (symbol_t): printer and
printer_location are new members.
(symbol_printer_set): New.
* src/parse-gram.y (PERCENT_PRINTER): New token.
Handle its associated rule.
* src/scan-gram.l: Adjust.
(handle_destructor_at, handle_destructor_dollar): Rename as...
(handle_symbol_code_at, handle_symbol_code_dollar): these.
* src/output.c (symbol_printers_output): New.
(output_skeleton): Call it.
* data/bison.simple (yysymprint): New.  Cannot be named yyprint
since there are already many grammar files with a user `yyprint'.
Replace the calls to YYPRINT to calls to yysymprint.
* tests/calc.at: Adjust.
* tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
taking advantage of parser very internal details (stack size!).
13 files changed:
ChangeLog
data/bison.simple
src/output.c
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/reader.h
src/scan-gram.c
src/scan-gram.l
src/symtab.c
src/symtab.h
tests/calc.at
tests/torture.at