term method

Parser term()

Implementation

Parser term() =>
    ref0(atom) &
    (ref0(openParenToken) &
            ref0(parameter)
                .plusSeparated(ref0(commaToken))
                .map((list) => list.elements) &
            ref0(closeParentToken))
        .optional();