separated tuple([] used for assignment) from array(holding data)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-10 22:38:01 +09:00
parent f6f4d0f259
commit 37e0efc74a
6 changed files with 98 additions and 54 deletions

View File

@ -4527,6 +4527,12 @@ redo:
hcl_setsynerrbfmt (hcl, HCL_SYNERR_VARDCLBANNED, HCL_CNODE_GET_LOC(oprnd), HCL_NULL, "variable declaration disallowed");
return -1;
case HCL_CONCODE_TUPLE:
/* [a, b] is only allowed as a lvalue for now */
hcl_setsynerrbfmt (hcl, HCL_SYNERR_BANNED, HCL_CNODE_GET_LOC(oprnd), HCL_NULL, "tuple disallowed");
return -1;
/* ALIST is transformed to XLIST with or set or set-r by the reader.
* so it must not appear here */
case HCL_CONCODE_ALIST: