mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user