tests: check the location of the right-hand side symbols

The D skeleton was not properly supporting @1 etc.
Reported by Adela Vais.
https://lists.gnu.org/r/bison-patches/2020-09/msg00049.html

* data/skeletons/d.m4 (b4_rhs_location): Fix it.
* tests/calc.at: Check the support of @n for all the skeletons.
This commit is contained in:
Akim Demaille
2020-09-20 17:06:04 +02:00
parent 72946549ed
commit f8cd049ecc
2 changed files with 42 additions and 11 deletions

View File

@@ -345,7 +345,7 @@ m4_define([b4_lhs_location],
# Expansion of @POS, where the current rule has RULE-LENGTH symbols
# on RHS.
m4_define([b4_rhs_location],
[yystack.locationAt ([$1], [$2])])
[yystack.locationAt (b4_subtract($@))])
# b4_lex_param