Allow Expressions and Expansions In Array Indexes
Would like to support expressions and expansions in array syntax. Unsure on what syntax to pursue though. If we are to use the arithmetic expressions parser for indexes, it could look something like this:
let array = [ 1 2 3 4 5 ]
let start = 0
let end = 3
echo @array[start+1..end+1]
let i = 0
echo @array[i]
echo @array[i+1]
echo @array[i+2]
echo @array[i+3]
echo @array[i+4]
Or we could just use the standard parser and have them interpreted the same way as everything else.