X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_parser%2FgrafiteParser.ml;h=c1b059991db9e8b21093f531b2413ff4c802841a;hb=91d21783f8ef99251f1868ea286c395d7f653ac5;hp=5f1b212bc160ed8b1ea034e725d5bf8e12167e32;hpb=ad5d1efa7265f0881bc0b1a49cd806f40e4cb31a;p=helm.git diff --git a/matita/components/grafite_parser/grafiteParser.ml b/matita/components/grafite_parser/grafiteParser.ml index 5f1b212bc..c1b059991 100644 --- a/matita/components/grafite_parser/grafiteParser.ml +++ b/matita/components/grafite_parser/grafiteParser.ml @@ -545,12 +545,12 @@ EXTEND G.UnificationHint (loc, t, n) | IDENT "coercion"; name = IDENT; compose = OPT [ IDENT "nocomposites" -> () ]; - SYMBOL ":"; ty = term; + spec = OPT [ SYMBOL ":"; ty = term; SYMBOL <:unicode>; t = term; "on"; id = [ IDENT | PIDENT ]; SYMBOL ":"; source = term; - "to"; target = term -> + "to"; target = term -> t,ty,(id,source),target ] -> let compose = compose = None in - G.NCoercion(loc,name,compose,t,ty,(id,source),target) + G.NCoercion(loc,name,compose,spec) | 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";