Support .a.[] and .a.[]? each syntax

Fixes #1699
This commit is contained in:
Mattias Wadman authored and Nico Williams committed 2023-07-09 10:08:31 -05:00
1 parent d8072564c2
commit ab1a68144d
3 files changed
+855 -816

No files matched your search

+6
View File
@@ -710,6 +710,12 @@ Term '[' ']' '?' {
Term '[' ']' %prec NONOPT {
$$ = block_join($1, gen_op_simple(EACH));
} |
Term '.' '[' ']' '?' {
$$ = block_join($1, gen_op_simple(EACH_OPT));
} |
Term '.' '[' ']' %prec NONOPT {
$$ = block_join($1, gen_op_simple(EACH));
} |
Term '[' Exp ':' Exp ']' '?' {
$$ = gen_slice_index($1, $3, $5, INDEX_OPT);
} |