Function wordshk_tools::parse_named_clause[][src]

pub fn parse_named_clause<'a>(name: &'static str) -> BoxedParser<'a, Clause, ()>
Expand description

Parse a Clause tagged in front by its name/category

For example, here’s an English clause:

eng:My headphone cord was knotted.

// which parses to:

vec![vec![(Text, "My headphone cord was knotted.".into())]]