]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/cicNotationParser.mli
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_notation / cicNotationParser.mli
index 048551915712c1fca2f2176cf811ae3417164c3b..d614c68bca4b1dedd997677480fefe15ccf748bd 100644 (file)
@@ -29,18 +29,18 @@ exception Level_not_found of int
 (** {2 Parsing functions} *)
 
   (** concrete syntax pattern: notation level 1 *)
-val parse_level1_pattern: char Stream.t -> CicNotationPt.term
+val parse_level1_pattern: Ulexing.lexbuf -> CicNotationPt.term
 
   (** AST pattern: notation level 2 *)
-val parse_level2_ast: char Stream.t -> CicNotationPt.term
-val parse_level2_meta: char Stream.t -> CicNotationPt.term
+val parse_level2_ast: Ulexing.lexbuf -> CicNotationPt.term
+val parse_level2_meta: Ulexing.lexbuf -> CicNotationPt.term
 
 (** {2 Grammar extension} *)
 
 type rule_id
 
 val extend:
-  CicNotationPt.term ->
+  CicNotationPt.term -> (* level 1 pattern *)
   precedence:int ->
   associativity:Gramext.g_assoc ->
   (CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) ->
@@ -54,8 +54,10 @@ val delete: rule_id -> unit
 val level2_ast_grammar: Grammar.g
 
 val term : CicNotationPt.term Grammar.Entry.e
+
 val let_defs :
-  (CicNotationPt.capture_variable * CicNotationPt.term * int) list Grammar.Entry.e
+  (CicNotationPt.capture_variable * CicNotationPt.term * int) list
+    Grammar.Entry.e
 
 (** {2 Debugging} *)