]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/cicTextualParser2.mli
various updates, removed proofs for now because they are the real bottleneck!!
[helm.git] / helm / ocaml / cic_disambiguation / cicTextualParser2.mli
index 0f13d116a34d4f48ffc3563f6ae816f0a643a3f2..c95485e52661b20b1028c53d8eddf42cb672c967 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-exception Parse_error of string
+exception Parse_error of Token.flocation * string
 
 (** {2 Parsing functions} *)
 
-val parse_term: char Stream.t -> CicTextualParser2Ast.term
+val parse_term: char Stream.t -> DisambiguateTypes.term
+val parse_statement:
+ char Stream.t -> (CicAst.term, TacticAst.obj,string) TacticAst.statement
+val parse_statements:  
+ char Stream.t -> (CicAst.term, TacticAst.obj, string) TacticAst.statement list
 
 (** {2 Grammar extensions} *)
 
-val term: CicTextualParser2Ast.term Grammar.Entry.e (** recursive rule *)
-val term0: CicTextualParser2Ast.term Grammar.Entry.e (** top level rule *)
+val term: CicAst.term Grammar.Entry.e   (** recursive rule *)
+val term0: CicAst.term Grammar.Entry.e  (** top level rule *)
 
-val return_term:
-  CicTextualParser2Ast.location -> CicTextualParser2Ast.term ->
-    CicTextualParser2Ast.term
+val return_term: CicAst.location -> CicAst.term -> CicAst.term
 
   (** raise a parse error *)
-val fail: CicTextualParser2Ast.location -> string -> 'a
+val fail: CicAst.location -> string -> 'a
 
 (**/**)