rustre_parser::parser::nodes

Function parse_params_and_returns

Source
pub fn parse_params_and_returns<'slice, 'src>(
    input: Input<'slice, 'src, LustreLang>,
) -> IResult<'slice, 'src, LustreLang, ParserError, ParserError>
Expand description

Loosely parses 〈Params〉 returns 〈Params〉

Either the first 〈Params〉 or the returns token must be present for the parser not to fail.