package alba

  1. Overview
  2. Docs
val start : t -> t

Start a function abstraction and expect the first argument type.

val next : string -> bool -> t -> t

next name typed bc

Add a bound variable whose type is the last analyzed expression and expect the next variable type or the type of the inner expression.

val inner : t -> t

Expect the inner expression of the function abstraction whose type is the last analyzed expression.

val end_ : int -> int -> bool -> t -> (t, type_in_context * type_in_context) Stdlib.result

end_ nargs nbounds typed cb

End the function abstraction with nbounds bound variables. The function abstraction is applied to nargs arguments.

OCaml

Innovation. Community. Security.