]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_parser/grafiteParser.ml
Added "nocomposites" to coercions.
[helm.git] / matita / components / grafite_parser / grafiteParser.ml
index aeb0080c4fa163023069d8d2e681fffccf46933c..762da10f5131c05e482b3cafcdab069eb8a48ff8 100644 (file)
@@ -579,8 +579,9 @@ EXTEND
     | IDENT "coercion"; name = IDENT; SYMBOL ":"; ty = term; 
         SYMBOL <:unicode<def>>; t = term; "on"; 
         id = [ IDENT | PIDENT ]; SYMBOL ":"; source = term;
-        "to"; target = term ->
-          G.NCoercion(loc,name,t,ty,(id,source),target)     
+        "to"; target = term; compose = OPT [ IDENT "nocomposites" -> () ]  ->
+          let compose = compose = None in
+          G.NCoercion(loc,name,compose,t,ty,(id,source),target)     
     | IDENT "record" ; (params,name,ty,fields) = record_spec ->
         G.NObj (loc, N.Record (params,name,ty,fields))
     | IDENT "copy" ; s = IDENT; IDENT "from"; u = URI; "with";