X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_generator%2FmQGUtil.ml;fp=helm%2Focaml%2Fmathql_generator%2FmQGUtil.ml;h=b9ff4bb153f26574eeb5f95c88f60fc67f1dba93;hb=efdc3184ccd0738fe48aa0056fc444fba23329e8;hp=36dd0653c67f83256c4276dc8b8540798739fabe;hpb=cf13d8dc120ae8745b26f8dbadea5af3f3b2193c;p=helm.git diff --git a/helm/ocaml/mathql_generator/mQGUtil.ml b/helm/ocaml/mathql_generator/mQGUtil.ml index 36dd0653c..b9ff4bb15 100644 --- a/helm/ocaml/mathql_generator/mQGUtil.ml +++ b/helm/ocaml/mathql_generator/mQGUtil.ml @@ -40,9 +40,10 @@ let string_of_position p = | T.InBody -> ns ^ "InBody" let string_of_sort = function - | T.Set -> "Set" - | T.Prop -> "Prop" - | T.Type -> "Type" + | T.Set -> "Set" + | T.Prop -> "Prop" + | T.Type -> "Type" + | T.CProp -> "CProp" let string_of_depth = string_of_int @@ -54,9 +55,10 @@ let mathql_of_position = function | T.InBody -> "$IB" let mathql_of_sort = function - | T.Set -> "$SET" - | T.Prop -> "$PROP" - | T.Type -> "$TYPE" + | T.Set -> "$SET" + | T.Prop -> "$PROP" + | T.Type -> "$TYPE" + | T.CProp -> "$CPROP" let mathql_of_depth = string_of_int @@ -92,9 +94,10 @@ let position_of_mathql = function | _ -> raise Parsing.Parse_error let sort_of_mathql = function - | "$SET" -> T.Set - | "$PROP" -> T.Prop - | "$TYPE" -> T.Type + | "$SET" -> T.Set + | "$PROP" -> T.Prop + | "$TYPE" -> T.Type + | "$CPROP" -> T.CProp | _ -> raise Parsing.Parse_error let depth_of_mathql s = @@ -120,9 +123,10 @@ let text_of_depth pos no_depth_text = match pos with | _ -> no_depth_text let text_of_sort = function - | T.Set -> "Set" - | T.Prop -> "Prop" - | T.Type -> "Type" + | T.Set -> "Set" + | T.Prop -> "Prop" + | T.Type -> "Type" + | T.CProp -> "CProp" let is_main_position = function | `MainHypothesis _