muscle: check the kind of api.prefix, api.location.type

* data/bison.m4: Check api.prefix.
* data/c++.m4: Check api.location.type.
* doc/bison.texi: Fix uses of api.value.type, api.prefix, api.location.type.
Document {...} values for %define.
* src/parse-gram.y: Fix use of api.prefix.
* tests/calc.at: Fix uses of api.location.type.
* tests/input.at: Check api.prefix, and api.location.type.
This commit is contained in:
Akim Demaille
2013-04-16 17:42:43 +02:00
parent c53b684889
commit aba47f5624
6 changed files with 28 additions and 21 deletions

View File

@@ -1027,6 +1027,7 @@ m4_define_default([b4_location_initial_line], [1])
## --------------- ##
# api.prefix >< %name-prefix.
b4_percent_define_check_kind([api.prefix], [code], [deprecated])
b4_percent_define_ifdef([api.prefix],
[m4_ifdef([b4_prefix],
[b4_complain_at(b4_percent_define_get_loc([api.prefix]),

View File

@@ -29,6 +29,7 @@ m4_define([b4_comment],
## Checks. ##
## -------- ##
b4_percent_define_check_kind([api.location.type], [code], [deprecated])
b4_percent_define_check_kind([api.namespace], [code], [deprecated])
## ---------------- ##