Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

untyped lambda calculus interpreter and parser are automatically generated using ocamllex and menhir.

Files: types and tokens lambda calculus tokenizer lambda calculus parser lambda calculus interprter test examples




in OCaml toplevel

#use ""

let t = parse "(Lx. Ly. x y) w";;

val t : exp = App (Lam ("x", Lam ("y", App (Var "x", Var "y"))), Var "w")

#print_lambda t;;

(\x. \y. x y) w- : unit = ()

#print_lambda (reduce t);;

\y. w y- : unit = ()

You can’t perform that action at this time.