array method

Parser array()

Implementation

Parser array() => ref1(token, '{')
    .seq(ref0(expression)
        .starSeparated(ref0(periodToken).plus())
        .skip(after: ref0(periodToken).star())
        .map((list) => list.elements))
    .seq(ref1(token, '}'));