Context: https://github.com/Hackerpilot/libdparse/issues/67
The grammar contains the following rule:
PostfixExpression [ AssignExpression .. AssignExpression ]
This does not allow for multi-dimensional slicing such as `a[1..2, 3..4];`
Comment #1 by briancschott — 2015-10-27T19:05:02Z
I think that it might be useful to delete the SliceExpression rule and modify the IndexExpression rule to look like this:
IndexExpression:
PostfixExpression '[' ']'
| PostfixExpression '[' Index (',' Index)* ','? ']'
;
Index:
AssignExpression ('..' AssignExpression)?
;