]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/interface/annotation2Xml.ml
First very partial implementation of LetIn and bodyed Variables
[helm.git] / helm / interface / annotation2Xml.ml
index a9fca071ab02f77e9a751e64b3207984ff440ce3..4bcdcdaf1501cc068f9a716e75e5fdb64dd7d055 100644 (file)
@@ -61,6 +61,15 @@ let print_term =
            aux s ;
            aux t
         >]
+     | C.ALetIn (id,ann,_,s,t) ->
+        [< (match !ann with
+               None -> [<>]
+             | Some ann ->
+                (X.xml_nempty "Annotation" ["of", id] (X.xml_cdata ann))
+           ) ;
+           aux s ;
+           aux t
+        >]
      | C.AAppl (id,ann,li) ->
         [< (match !ann with
                None -> [<>]
@@ -155,12 +164,16 @@ let pp_annotation obj curi =
              ) ;
              print_term ty
           >]
-       | C.AVariable (xid, ann, _, ty) ->
+       | C.AVariable (xid, ann, _, bo, ty) ->
           [< (match !ann with
                  None -> [<>]
                | Some ann ->
                   X.xml_nempty "Annotation" ["of", xid] (X.xml_cdata ann)
              ) ;
+             (match bo with
+                 None -> [<>]
+               | Some bo -> print_term bo
+             ) ;
              print_term ty
           >]
        | C.ACurrentProof (xid, ann, _, conjs, bo, ty) ->