]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/cicNotationParser.mli
snapshot
[helm.git] / helm / ocaml / cic_notation / cicNotationParser.mli
index ef6aa482c30fe8633a7057673253a9fd1b2f00f9..b619606d02db4aa680d81a697c4bbdcddb6fa88f 100644 (file)
@@ -37,9 +37,10 @@ val parse_ast_pattern:    char Stream.t -> CicNotationPt.term
   (** interpretation: notation level 3 *)
 val parse_interpretation: char Stream.t -> CicNotationPt.cic_appl_pattern
 
-(** {2 Grammar extension} *)
+  (** top level phrases *)
+val parse_phrase: char Stream.t -> CicNotationPt.phrase
 
-type env_type = (string * (CicNotationPt.value_type * CicNotationPt.value)) list
+(** {2 Grammar extension} *)
 
 type rule_id
 
@@ -47,17 +48,13 @@ val extend:
   CicNotationPt.term ->
   ?precedence:int ->
   ?associativity:Gramext.g_assoc ->
-  (env_type -> CicNotationPt.location -> CicNotationPt.term) ->
+  (CicNotationEnv.env_type -> CicNotationPt.location -> CicNotationPt.term) ->
     rule_id
 
 val delete: rule_id -> unit
 
 (** {2 Debugging} *)
 
-val pp_env: env_type -> string
-val pp_value: CicNotationPt.value -> string
-val pp_value_type: CicNotationPt.value_type -> string
-
   (** print "level2_pattern" entry on stdout, flushing afterwards *)
 val print_l2_pattern: unit -> unit