X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fcic_notation%2FcicNotationParser.mli;h=6192bf05bbe984b2c55bf9130fe35c597f00b68a;hb=8aaf525856e25bcd8f355e505fd00f45c62bc18f;hp=5112f6dbd89dcbd1d129052508bf00b4e2511a0d;hpb=7433c53083f5e6f28ce02c7ad53d26f064f31a5c;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationParser.mli b/helm/ocaml/cic_notation/cicNotationParser.mli index 5112f6dbd..6192bf05b 100644 --- a/helm/ocaml/cic_notation/cicNotationParser.mli +++ b/helm/ocaml/cic_notation/cicNotationParser.mli @@ -24,6 +24,7 @@ *) exception Parse_error of Token.flocation * string +exception Level_not_found of int (** {2 Parsing functions} *) @@ -36,3 +37,24 @@ val parse_ast_pattern: char Stream.t -> CicNotationPt.term (** interpretation: notation level 3 *) val parse_interpretation: char Stream.t -> CicNotationPt.cic_appl_pattern + (** top level phrases *) +val parse_phrase: char Stream.t -> CicNotationPt.phrase + +(** {2 Grammar extension} *) + +type rule_id + +val extend: + CicNotationPt.term -> + ?precedence:int -> + ?associativity:Gramext.g_assoc -> + (CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) -> + rule_id + +val delete: rule_id -> unit + +(** {2 Debugging} *) + + (** print "level2_pattern" entry on stdout, flushing afterwards *) +val print_l2_pattern: unit -> unit +