--- trunk/src/compiler/high-il/check-ops.sml 2010/10/14 22:11:38 404 +++ trunk/src/compiler/high-il/check-ops.sml 2010/10/15 04:42:42 405 @@ -4,15 +4,14 @@ * All rights reserved. *) -structure CheckOps : sig - - val sign : HighOps.rator -> HighILTypes.ty * HighILTypes.ty list - - end = struct +structure CheckOps : OPERATOR_TY = struct structure Op = HighOps structure Ty = HighILTypes + type rator = Op.rator + type ty = Ty.ty + fun sign rator = (case rator of Op.Add ty => (ty, [ty, ty]) | Op.Sub ty => (ty, [ty, ty]) @@ -70,3 +69,7 @@ (* end case *)) end + +structure CheckHighIL = CheckILFn ( + structure IL = HighIL + structure OpTy = CheckOps)