pub fn parse_bound_expression(
input: Cid,
defs: Rc<RefCell<Defs>>,
type_rec: Option<Name>,
term_rec: Option<Name>,
ctx: Ctx,
quasi: Rc<VecDeque<Term>>,
nam: Name,
letrec: bool,
) -> impl Fn(Span<'_>) -> IResult<Span<'_>, (Term, Term), ParseError<Span<'_>>>Expand description
The input (A: Type) (x: A) : A = x returns:
- type:
∀ (A: Type) (x: A) -> A - term:
λ A x => xThis is useful for parsing lets and defs