Function wordshk_tools::parse_partial_pr_named_clause[][src]

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

Parse a partial named pronunciation Clause, until the opening paren of Jyutping pronunciations

For the following named pronunciation clause:

yue:可唔可以見面? (ho2 m4 ho2 ji5 gin3 min6?)

This function will parse everything up until the ‘(’:

yue:可唔可以見面// which parses to:

vec![vec![(Text, "可唔可以見面?".into())]]