X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=code%2Fcalculator%2Fcalc3.ml;h=522ca2877da8f3ec9848d3286ac0b974a69616b6;hp=bcf15cdfd8a0f7b65961368e628f344c91b09ae2;hb=bd90f2eb8b87c2f44169fe209c5e35dd113c3d21;hpb=d3258f211acf8c73519d560432c9c453ffd8d9a2;ds=sidebyside diff --git a/code/calculator/calc3.ml b/code/calculator/calc3.ml index bcf15cdf..522ca287 100644 --- a/code/calculator/calc3.ml +++ b/code/calculator/calc3.ml @@ -1,19 +1,19 @@ (* calc2.ml, enhanced with Recursive Function Values *) type term = - Intconstant of int - | Multiplication of (term * term) - | Addition of (term * term) - | Variable of char - | Let of (char * term * term) - | Iszero of term - | If of (term * term * term) - | Makepair of (term * term) - | First of term - | Lambda of (char * term) - | Apply of (term * term) - | Letrec of (char * term * term) - ;; + Intconstant of int + | Multiplication of (term * term) + | Addition of (term * term) + | Variable of char + | Let of (char * term * term) + | Iszero of term + | If of (term * term * term) + | Makepair of (term * term) + | First of term + | Lambda of (char * term) + | Apply of (term * term) + | Letrec of (char * term * term) + ;; type bound_value = Nonrecursive of expressed_value | Recursive_Closure of char * char * term * assignment and assignment = (char * bound_value) list