]> matita.cs.unibo.it Git - helm.git/commitdiff
added cast rendering (used in check window by gTopLevel/matita)
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 20 Jan 2005 10:26:06 +0000 (10:26 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 20 Jan 2005 10:26:06 +0000 (10:26 +0000)
helm/ocaml/cic_transformations/acic2Ast.ml

index 752dd321642243763245dddaba808c47385fd4b7..b815d33bd4eb3a9be37f6d1bc2e83c7762878ffe 100644 (file)
@@ -92,7 +92,8 @@ let ast_of_acic ids_to_inner_sorts acic =
           | `Prop | `CProp -> `Forall
         in
         idref id (Ast.Binder (binder_kind, (n, Some (aux s)), aux t))
-    | Cic.ACast (id,v,t) -> idref id (aux v)
+    | Cic.ACast (id,v,t) ->
+        idref id (Ast.Appl [idref id (Ast.Symbol ("cast", -1)); aux v; aux t])
     | Cic.ALambda (id,n,s,t) ->
         idref id (Ast.Binder (`Lambda, (n, Some (aux s)), aux t))
     | Cic.ALetIn (id,n,s,t) -> idref id (Ast.LetIn ((n, None), aux s, aux t))