rule method

Parser rule()

Implementation

Parser rule() =>
    ref0(term) &
    (ref0(definitionToken) &
            ref0(term)
                .plusSeparated(ref0(commaToken))
                .map((list) => list.elements))
        .optional() &
    ref0(terminatorToken);