X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?a=blobdiff_plain;f=code%2Fcalculator%2Fcalc5.ml;fp=code%2Fcalculator%2Fcalc5.ml;h=bfc91d9ff66bc7fb889d8cf00ba3847855d4c91f;hb=bd90f2eb8b87c2f44169fe209c5e35dd113c3d21;hp=85727060c8cc3877898e272ff6586df47ae47106;hpb=d3258f211acf8c73519d560432c9c453ffd8d9a2;p=lambda.git diff --git a/code/calculator/calc5.ml b/code/calculator/calc5.ml index 85727060..bfc91d9f 100644 --- a/code/calculator/calc5.ml +++ b/code/calculator/calc5.ml @@ -1,20 +1,20 @@ (* calc3,ml, enhanced with Mutable Pairs *) 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) - | Setfirst 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) + | Setfirst of (term * term) + ;; type index = int;;