LFPL Compiler
Examples:
append.lfpl
assign.lfpl
assign1.lfpl
assign2.lfpl
call.lfpl
cons.lfpl
empty.lfpl
empty2.lfpl
empty3.lfpl
if.lfpl
if2.lfpl
insert.lfpl
leaf.lfpl
list1.lfpl
list2.lfpl
list3.lfpl
list4.lfpl
nil.lfpl
node.lfpl
reverse.lfpl
simple.lfpl
sort.lfpl
tree1.lfpl
tree2.lfpl
tree3.lfpl
void.lfpl
prog datatype list = Nil | Cons of int * list def list reverse_aux (list l,list acc) = match l with Nil -> acc | Cons(h,t in d) -> reverse_aux(t,Cons(h,acc in d)) def list reverse (list l) = reverse_aux(l,Nil) end