]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/binaries/transcript/grafiteParser.mly
statistics are used, when possible, to sort
[helm.git] / helm / software / components / binaries / transcript / grafiteParser.mly
index 3163a6a07d5daf4bd9a4350b48fbdeb5eb667322..82295c69b553bc68f268a387f2127f49defb46ad 100644 (file)
@@ -42,7 +42,7 @@
         | "lemma"       -> T.Con, Some `Lemma
         | "fact"        -> T.Con, Some `Fact 
         | "remark"      -> T.Con, Some `Remark        
-        | "variant"     -> T.Con, None
+        | "variant"     -> T.Con, Some `Variant
        | _             -> assert false
 
 %}
          { out "OK" $1; [T.Verbatim $1] }
       | TH SPC id line drops
          { out "TH" $3;
-          let a, b = mk_flavour $1 in [T.Inline (true, a, $3, "", b)] 
+          let a, b = mk_flavour $1 in [T.Inline (false, a, $3, "", b, [])] 
         }
-      | UNX line drops 
-         { out "UNX" $1; [T.Verbatim ($1 ^ $2 ^ $3)] }
-      | PS steps
-         { [] }
+      | UNX line drops { out "UNX" $1; [T.Verbatim ($1 ^ $2 ^ $3)] }
+      | PS steps       { out "PS" $2; [] }
+      | QED FS         { [] }
    ;
    items:
       | EOF        { []      }
       | item items { $1 @ $2 }
 /*      | error      { out "ERROR" ""; failwith ("item id " ^ "") } */
-   ;
+  ;