parse

Function parse 

Source
pub fn parse(
    input: &str,
) -> Result<Vec<Token<'_>>, ParseError<LocatingSlice<&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:?}");