]> git.saurik.com Git - bison.git/commit
Use the new code_props interface in parse-gram.y.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 3 Jan 2007 05:14:57 +0000 (05:14 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 3 Jan 2007 05:14:57 +0000 (05:14 +0000)
commit7c0c61812d534683d10234082e6e6adee6eb81a6
tree582433ff4d3bdf0f9e4829605290c441c6ab3b0f
parent28e52c0d622b3017e14d2cf2e526238aa2cfd6ef
Use the new code_props interface in parse-gram.y.
* src/parse-gram.y (prologue_declaration, braceless, epilogue.opt):
Update all uses of translate_* functions to use the new code_props
interface and to use gram_scanner_last_string_free and
code_scanner_last_string_free where possible.
(grammar_declaration): symbol_list_destructor_set and
symbol_list_printer_set now perform the translation, so don't do it
here.  Use gram_scanner_last_string_free where possible.
* src/scan-code.h, src/scan-code.l (translate_symbol_action,
translate_code): Remove, no longer used.
* src/symlist.h, src/symlist.c (symbol_list_destructor_set,
symbol_list_printer_set): Perform code translation here rather than
depending on the caller to do so.

* src/symlist.h (struct symbol_list): Correct some documentation typos.
* src/scan-gram.h (gram_last_string): Remove declaration.
* src/scan-gram.l (last_string): Declare it static.
ChangeLog
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/scan-code.h
src/scan-code.l
src/scan-gram.h
src/scan-gram.l
src/symlist.c
src/symlist.h