]> git.saurik.com Git - bison.git/commit - data/bison.m4
api.value.type: use keyword/brace values
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 5 Apr 2013 12:40:25 +0000 (14:40 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 9 Apr 2013 14:59:06 +0000 (16:59 +0200)
commit435575cb5e28bfc20263413e837c24a95373b3d4
tree1cc88f0f5dcf32a0b8e0c8c353eb1beebda90424
parent1fa19a769721658bb53177596531afbbea8b4e1c
api.value.type: use keyword/brace values

Suggested by Joel E. Denny.
http://lists.gnu.org/archive/html/bison-patches/2013-03/msg00016.html

* data/bison.m4 (b4_percent_define_get_kind): New.
(b4_variant_flag): Check that api.value.type is defined as the 'variant'
keyword value.
* data/c.m4 (_b4_value_type_setup_keyword): New.
(b4_value_type_setup): Use it to simplify reading.
Use b4_define_silent.
Decode api.value.type, including its type.
(b4_value_type_define): Likewise.
* data/c++.m4 (b4_value_type_declare): Adjust the decoding of api.value.type,
taking its kind into account.
* doc/bison.texi: Adjust all the examples to the new syntax.
* NEWS: Ditto.
* tests/types.at: Adjust
NEWS
data/bison.m4
data/c++.m4
data/c.m4
doc/bison.texi
tests/types.at