]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/cicNotationPt.ml
- synced notation pretty printing with parsing syntax
[helm.git] / helm / ocaml / cic_notation / cicNotationPt.ml
index ba31a370561807e6b83e5dd3b031a141702342b0..4ea310ee5d5d19d181b4e534107fd844bfd451c2 100644 (file)
@@ -39,6 +39,8 @@ let fail floc msg =
   let (x, y) = loc_of_floc floc in
   failwith (Printf.sprintf "Error at characters %d - %d: %s" x y msg)
 
+type blob_context = [ `Ast | `Meta ]
+
 type term_attribute =
   [ `Loc of location                  (* source file location *)
   | `IdRef of string                  (* ACic pointer *)
@@ -46,6 +48,7 @@ type term_attribute =
   | `Level of int * Gramext.g_assoc   (* precedence, associativity *)
   | `XmlAttrs of (string option * string * string) list
       (* list of XML attributes: namespace, name, value *)
+  | `Raw of string * blob_context option  (* unparsed version *)
   ]
 
 type literal =