Function wordshk_tools::parse_simple_def[][src]

pub fn parse_simple_def<'a>() -> BoxedParser<'a, Def, ()>
Expand description

Parse a simple definition

For example, here’s a simple definition for the word 奸爸爹

yue:#加油
eng:cheer up
jpn:頑張ってがんばって// which parses to:

Def {
    yue: vec![vec![(Link, "加油".into())]],
    eng: Some(vec![vec![(Text, "cheer up".into())]]),
    alts: vec![(AltLang::Jpn, vec![vec![(Text, "頑張って(がんばって)".into())]])],
    egs: vec![],
}