X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationParser.mli;h=22dffd4bf61aeeab0a8656b64531eadd1899cae9;hb=08791e80816548121e81e04d3ead8c9a5171d033;hp=ef6aa482c30fe8633a7057673253a9fd1b2f00f9;hpb=29aacd800408d16b9cb58dd58e603e31aa2ad511;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationParser.mli b/helm/ocaml/cic_notation/cicNotationParser.mli index ef6aa482c..22dffd4bf 100644 --- a/helm/ocaml/cic_notation/cicNotationParser.mli +++ b/helm/ocaml/cic_notation/cicNotationParser.mli @@ -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,16 +48,24 @@ val extend: CicNotationPt.term -> ?precedence:int -> ?associativity:Gramext.g_assoc -> - (env_type -> CicNotationPt.location -> CicNotationPt.term) -> + (CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) -> rule_id val delete: rule_id -> unit -(** {2 Debugging} *) +(** {2 Standard precedences} *) -val pp_env: env_type -> string -val pp_value: CicNotationPt.value -> string -val pp_value_type: CicNotationPt.value_type -> string +val let_in_prec: int +val binder_prec: int +val apply_prec: int +val simple_prec: int + +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 + +(** {2 Debugging} *) (** print "level2_pattern" entry on stdout, flushing afterwards *) val print_l2_pattern: unit -> unit