%define variables: support value changes in deprecation

* src/muscle-tab.c (define_directive): Be robust to "assignment"
containing '='.
(muscle_percent_variable_update): Upgrade "variant" to "api.value.type".
Support such upgrade patterns.
Adjust callers.

* data/bison.m4: Use api.value.type for variants.
* tests/c++.at: Adjust tests.
This commit is contained in:
Akim Demaille
2012-12-16 10:20:46 +01:00
parent 53f8e4096d
commit bc6038978f
3 changed files with 66 additions and 19 deletions

View File

@@ -34,7 +34,7 @@ AT_DATA_GRAMMAR([list.yy],
[[%debug
%skeleton "lalr1.cc"
%defines
%define variant
%define api.value.type variant
]m4_bpatsubst([$1], [\\n], [
])[
@@ -456,7 +456,7 @@ AT_DATA_GRAMMAR([[input.yy]],
}
%defines
%define variant
%define api.value.type variant
%define parse.error verbose
%define parse.trace
%%