mapLiteral method

Parser mapLiteral()

Implementation

Parser mapLiteral() =>
    ref1(token, '{') &
    (ref0(mapLiteralEntry) &
            (ref1(token, ',') & ref0(mapLiteralEntry)).star() &
            ref1(token, ',').optional())
        .optional() &
    ref1(token, '}');