Closed rlwhitcomb closed 5 months ago
Well, first "naive" attempt to add this gives an Antler error:
error(119): Calc.g4::: The following sets of rules are mutually left-recursive [expr, builtinFunction, var]
Trying again ....
Ah, adding "slice" inside "var" makes it work. Needs much work inside LValueContext then ...
Need to test, but probably "slice" itself can now go away. Still need to add doc to the help page, and beefing up the possibility of null values would help also with understanding (like how it fits with "index" and so on).
slice(a,2)
would bea[2:]
and so forth