]> git.saurik.com Git - bison.git/commit - tests/local.mk
api.value.type: implement proper support, check, and document
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 8 Feb 2013 16:17:33 +0000 (17:17 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 9 Apr 2013 12:07:51 +0000 (14:07 +0200)
commit6574576cfb6e5039e8a21714e8d9bf482ae7c32f
tree84c343ee4fbacca869d20a5ddeeac19e9ea5a407
parentdde95ca432b2b54c8bc8d2dea3e0c9069862321d
api.value.type: implement proper support, check, and document

* data/c.m4 (b4_symbol_type_register, b4_type_define_tag)
(b4_symbol_value_union, b4_value_type_setup_union)
(b4_value_type_setup_variant, b4_value_type_setup):
New.
(b4_value_type_define): Use it to set up properly the type.
Handle the various possible values of api.value.type.
* data/c++.m4 (b4_value_type_declare): Likewise.
* data/lalr1.cc (b4_value_type_setup_variant): Redefine.

* tests/types.at: New.
Exercise all the C/C++ skeletons with different types of
api.value.type values.
* tests/local.mk, tests/testsuite.at: Use it.

* doc/bison.texi (%define Summary): Document api.value.type.
* NEWS: Advertise it, together with api.token.constructor.
NEWS
data/bison.m4
data/c++.m4
data/c.m4
data/lalr1.cc
doc/bison.texi
tests/local.mk
tests/testsuite.at
tests/types.at [new file with mode: 0644]