miller/test/cases/dsl-array-map-indexing/0010/mlr
John Kerl d0079a9dac
Simplify positional-indexing syntax in mlr.bnf; push logic to .go source (#2008)
* Move `$[[...]]` and `$[[[...]]]` out of the grammar and into Go

* Update pkg/parsing/mlr.bnf

* Update Go source

* update test files

* Fix NPE

* .gitignore

* more
2026-03-04 21:48:09 -05:00

12 lines
200 B
Text

$o = {
"a": {
"x": [1,2,3],
"y": [4,5,6],
},
"b": {
"s": [7,8,9],
"t": [9,5,1],
},
};
# Expect no assignment here since $o is absent
$z = $o[[1]]["x"];