X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=code%2Fcalculator%2Fcalc4.ml;h=571d2776eb6f9526457cb2cb8e020a0531ec6b71;hp=d2fc94e6c8cc73f5b42edba33d22259e2ccc08f8;hb=bd90f2eb8b87c2f44169fe209c5e35dd113c3d21;hpb=d3258f211acf8c73519d560432c9c453ffd8d9a2;ds=sidebyside diff --git a/code/calculator/calc4.ml b/code/calculator/calc4.ml index d2fc94e6..571d2776 100644 --- a/code/calculator/calc4.ml +++ b/code/calculator/calc4.ml @@ -1,22 +1,22 @@ (* calc3.ml, enhanced with Mutable Cells *) 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) - | Newref of term - | Deref of term - | Setref 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) + | Letrec of (char * term * term) + | Newref of term + | Deref of term + | Setref of (term * term) + ;; type index = int;;