pub fn parse_rule( input: &str, lex: &mut Lexicon, ctx: &mut Context, ) -> Result<Rule, ParseError>
Given a Lexicon, parse and typecheck a Rule. The format of the Rule is as given in term_rewriting.
Lexicon
Rule
term_rewriting