Files
bison/tests
Akim Demaille 1f4dd2671a c++: provide symbol constructors per type
On

    %token <int> FOO BAR

we currently generate make_FOO(int) and make_BAR(int).  However, in
order to factor their scanners, some users would also like to have
make_symbol(tok, int), where tok is FOO or BAR.  To ensure type
safety, add assertions that do check that value type and token type
match.  Bind this assertion to the parse.assert %define variable.

Suggested by Frank Heckenbach.
http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00034.html
Should also match expectations from Аскар Сафин.
http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00023.html

* data/variant.hh: Use b4_token_visible_if where applicable.
(_b4_type_constructor_declare, _b4_type_constructor_define): New.
Use them.
2018-12-22 13:05:28 +01:00
..
2008-11-16 19:46:16 +01:00
2018-11-16 17:37:47 +01:00
2018-12-04 20:43:01 +01:00
2018-12-01 12:54:42 +01:00
2018-12-01 11:13:08 +01:00
2018-05-12 18:18:41 +02:00
2018-05-12 18:18:41 +02:00
2018-11-12 07:28:20 +01:00
2018-12-16 12:27:28 +01:00
2018-08-11 18:09:29 +02:00
2018-05-12 18:18:41 +02:00
2018-11-29 07:44:37 +01:00
2018-11-26 07:56:06 +01:00