Advertisement
kkleiner

Untitled

Sep 3rd, 2018
2,929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun typecheck_general lmterm context lunify
  2.     : (substitution * TTerm) option =
  3.         SOME([], INT)
  4.  
  5. functor TYPECHECK(U:UNIFIER) = struct
  6.   fun typecheck lmterm context : TTerm option =
  7.       case typecheck_general lmterm context U.lunify of
  8.           NONE => NONE
  9.         | SOME result => SOME (#2 result)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement