X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationParser.mli;h=80d79ef448e5f664bbd5153b832b5b3f934afa41;hb=b9af9f1c0de6a1735b492f5c793a87a8fce218cc;hp=1ce20fe9a8f7223ed00f4a44119120155b17ff12;hpb=a205eb4442d5b7a0a072a05bdfc525b8b9713c4e;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationParser.mli b/helm/ocaml/cic_notation/cicNotationParser.mli index 1ce20fe9a..80d79ef44 100644 --- a/helm/ocaml/cic_notation/cicNotationParser.mli +++ b/helm/ocaml/cic_notation/cicNotationParser.mli @@ -24,15 +24,41 @@ *) exception Parse_error of Token.flocation * string +exception Level_not_found of int (** {2 Parsing functions} *) (** concrete syntax pattern: notation level 1 *) -val parse_syntax_pattern: char Stream.t -> CicNotationPt.term +val parse_level1_pattern: char Stream.t -> CicNotationPt.term (** AST pattern: notation level 2 *) -val parse_ast_pattern: char Stream.t -> CicNotationPt.term +val parse_level2_ast: char Stream.t -> CicNotationPt.term +val parse_level2_meta: char Stream.t -> CicNotationPt.term - (** interpretation: notation level 3 *) -val parse_interpretation: char Stream.t -> unit +(** {2 Grammar extension} *) + +type rule_id + +val extend: + CicNotationPt.term -> (* level 1 pattern *) + precedence:int -> + associativity:Gramext.g_assoc -> + (CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) -> + rule_id + +val delete: rule_id -> unit + +(** {2 Grammar entries} + * needed by grafite parser *) + +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 + +(** {2 Debugging} *) + + (** print "level2_pattern" entry on stdout, flushing afterwards *) +val print_l2_pattern: unit -> unit