X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationParser.mli;h=80d79ef448e5f664bbd5153b832b5b3f934afa41;hb=b9af9f1c0de6a1735b492f5c793a87a8fce218cc;hp=73627cd0ae68e83d816300e2f43e82f6b3419170;hpb=c27b932e5adcf89dc9de0e28f65e3370fe3e6b05;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationParser.mli b/helm/ocaml/cic_notation/cicNotationParser.mli index 73627cd0a..80d79ef44 100644 --- a/helm/ocaml/cic_notation/cicNotationParser.mli +++ b/helm/ocaml/cic_notation/cicNotationParser.mli @@ -33,37 +33,29 @@ val parse_level1_pattern: char Stream.t -> CicNotationPt.term (** AST pattern: notation level 2 *) val parse_level2_ast: 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 +val parse_level2_meta: char Stream.t -> CicNotationPt.term (** {2 Grammar extension} *) type rule_id val extend: - CicNotationPt.term -> - ?precedence:int -> - ?associativity:Gramext.g_assoc -> + 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 Standard precedences} *) +(** {2 Grammar entries} + * needed by grafite parser *) -val let_in_prec: int -val binder_prec: int -val apply_prec: int -val simple_prec: int +val level2_ast_grammar: Grammar.g -val let_in_assoc: Gramext.g_assoc -val binder_assoc: Gramext.g_assoc -val apply_assoc: Gramext.g_assoc -val simple_assoc: Gramext.g_assoc +val term : CicNotationPt.term Grammar.Entry.e +val let_defs : + (CicNotationPt.capture_variable * CicNotationPt.term * int) list Grammar.Entry.e (** {2 Debugging} *)