Function recipe_parser::parse

source ·
pub fn parse(
    input: &str
) -> Result<Vec<Token<'_>>, ParseError<Located<&str>, ContextError>>
Expand description

Parse recipe tokens from a string

Example:

use recipe_parser::parse;

let input = "Take the {potatoe}(1) and boil it";
let result = parse(input).expect("recipe could not be parsed");

println!("{result:?}");