rustre_parser::parser::nodes

Function parse_node_type

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

Parses node, function, unsafe node and unsafe function

This function accepts anything that matches at least one token ; the keyword “unsafe” will be matched even if it isn’t followed by node or function