]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/bin/recomm/recommGcsWith.ml
update in gruound
[helm.git] / matita / matita / contribs / lambdadelta / bin / recomm / recommGcsWith.ml
index 8e1d810a2bf92d225b57f07e721fd39a64c77155..8d00bb8121597b4e35e08558ab98694b59d4c4f7 100644 (file)
@@ -1,10 +1,14 @@
+module T = RecommTypes
+module R = RecommCheck
 module D = RecommGcsMain
 
-let step k ok outs ins =
-  if ok then k ok outs ins else
+let step k st outs ins =
+  if st = T.KO then k st outs ins else
   match ins with
-  | "with" :: tl -> k ok ("with" :: outs) tl
-  | _ -> k true outs ins
+  | "with" :: tl -> k T.OK ("with" :: outs) tl
+  | "of" :: tl -> k T.OK ("with" :: outs) tl
+  | "for" :: tl -> k T.OK ("with" :: outs) tl
+  | _ -> k T.OO outs ins
 
 let main =
-  RecommCheck.register_s step
+  R.register_s step