]> matita.cs.unibo.it Git - helm.git/commitdiff
Syntax for coercion nocomposites fixed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 26 May 2011 09:33:31 +0000 (09:33 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 26 May 2011 09:33:31 +0000 (09:33 +0000)
matita/components/grafite_parser/grafiteParser.ml

index 762da10f5131c05e482b3cafcdab069eb8a48ff8..ff36dbe21e7a18b2669b80ca2aa9c745d804bb19 100644 (file)
@@ -576,10 +576,12 @@ EXTEND
          G.NUnivConstraint (loc,u1,u2)
     | IDENT "unification"; IDENT "hint"; n = int; t = tactic_term ->
         G.UnificationHint (loc, t, n)
-    | IDENT "coercion"; name = IDENT; SYMBOL ":"; ty = term; 
+    | IDENT "coercion"; name = IDENT;
+        compose = OPT [ IDENT "nocomposites" -> () ];
+        SYMBOL ":"; ty = term; 
         SYMBOL <:unicode<def>>; t = term; "on"; 
         id = [ IDENT | PIDENT ]; SYMBOL ":"; source = term;
-        "to"; target = term; compose = OPT [ IDENT "nocomposites" -> () ]  ->
+        "to"; target = term ->
           let compose = compose = None in
           G.NCoercion(loc,name,compose,t,ty,(id,source),target)     
     | IDENT "record" ; (params,name,ty,fields) = record_spec ->