]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/cicTextualParser2.ml
added cast concrete syntax
[helm.git] / helm / ocaml / cic_disambiguation / cicTextualParser2.ml
index 2474191fe4f0c9f866b40e8949f40e504e0fd91f..7c8261faebc372e2c92772bd1e50f3da3fc1af7f 100644 (file)
@@ -209,6 +209,8 @@ EXTEND
         PAREN "]" ->
           return_term loc
             (CicAst.Case (t, indty_ident, outtyp, patterns))
+      | PAREN "("; t1 = term; SYMBOL ":"; t2 = term; PAREN ")" ->
+          return_term loc (CicAst.Appl [CicAst.Symbol ("cast", 0); t1; t2])
       | PAREN "("; t = term; PAREN ")" -> return_term loc t
       ]
     ];