X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=code%2Fcalculator%2Fcalc2.ml;h=57a3342a32b3bc0316ae457859ab0926e8e84bb2;hp=9db0dea61123e1e5da5e58b36f67857b963dc081;hb=bd90f2eb8b87c2f44169fe209c5e35dd113c3d21;hpb=d3258f211acf8c73519d560432c9c453ffd8d9a2;ds=sidebyside diff --git a/code/calculator/calc2.ml b/code/calculator/calc2.ml index 9db0dea6..57a3342a 100644 --- a/code/calculator/calc2.ml +++ b/code/calculator/calc2.ml @@ -1,18 +1,18 @@ (* calc1.ml, enhanced with 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) - ;; + 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) + ;; type bound_value = expressed_value and assignment = (char * bound_value) list