]> matita.cs.unibo.it Git - fireball-separation.git/blobdiff - ocaml/parser.mli
Simplified arity_of, precompute_edible_data, critical_showsteppers
[fireball-separation.git] / ocaml / parser.mli
index c073c3af1a7436e537381ea6b88b234a5735dc49..d131edbf79b65b46315d19510ec9e96583b9f58e 100644 (file)
@@ -1,9 +1,15 @@
-type term =\r
-  | Var of int\r
-  | App of term * term\r
-  | Lam of term\r
+exception ParsingError of string\r
 \r
-(* parses a string to a term *)\r
-val parse: string -> term\r
-(* parse many strings/terms, and returns the list of parsed terms + the list of free variables; variable 0 is not used *)\r
-val parse_many: string list -> term list * string list\r
+val problem_of_string:\r
+ string ->\r
+  string (* problem label *)\r
+  * Num.i_var option (* div *)\r
+  * Num.i_n_var list (* conv *)\r
+  * Num.i_n_var list (* ps *)\r
+  * string list (* names of free variables *)\r
+val from_file : string ->\r
+ (string (* problem label *)\r
+ * Num.i_var option (* div *)\r
+ * Num.i_n_var list (* conv *)\r
+ * Num.i_n_var list (* ps *)\r
+ * string list (* names of free variables *)) list\r