[Issue 15250] Grammar does not contain rules for multiple slices in an index expression

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 27 12:05:02 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15250

--- Comment #1 from briancschott at gmail.com ---
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)?
    ;

--


More information about the Digitalmars-d-bugs mailing list