term method

Parser term()

Implementation

Parser term() =>
    ref0(atom) &
    (ref0(openParenToken) &
            ref0(parameter)
                .separatedBy(ref0(commaToken), includeSeparators: false) &
            ref0(closeParentToken))
        .optional();