array method

Parser array()

Implementation

Parser array() => ref1(token, '{')
    .seq(ref0(expression)
        .separatedBy(ref0(periodToken).plus(), optionalSeparatorAtEnd: true)
        .optionalWith([]))
    .seq(ref1(token, '}'));