X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2FcicNotationParser.mli;h=433711edd29ab9c5620641ace4704fa073b0c352;hb=8c0ccf03dbefd83818bc3b6849634f422f8ec727;hp=161c9167c62f8b4cf1b0e96138f0922cc75be994;hpb=8c4659819a1c1f2e450d9a588ecca37d95ae48e9;p=helm.git diff --git a/helm/software/components/content_pres/cicNotationParser.mli b/helm/software/components/content_pres/cicNotationParser.mli index 161c9167c..433711edd 100644 --- a/helm/software/components/content_pres/cicNotationParser.mli +++ b/helm/software/components/content_pres/cicNotationParser.mli @@ -30,8 +30,9 @@ type checked_l1_pattern = private CL1P of CicNotationPt.term * int (** {2 Parsing functions} *) - (** concrete syntax pattern: notation level 1 *) -val parse_level1_pattern: Ulexing.lexbuf -> CicNotationPt.term + (** concrete syntax pattern: notation level 1, the + * integer is the precedence *) +val parse_level1_pattern: int -> Ulexing.lexbuf -> CicNotationPt.term (** AST pattern: notation level 2 *) val parse_level2_ast: Ulexing.lexbuf -> CicNotationPt.term @@ -41,6 +42,8 @@ val parse_level2_meta: Ulexing.lexbuf -> CicNotationPt.term type rule_id +val compare_rule_id : rule_id -> rule_id -> int + val check_l1_pattern: (* level1_pattern *) CicNotationPt.term -> int -> Gramext.g_assoc -> checked_l1_pattern @@ -54,15 +57,15 @@ val delete: rule_id -> unit (** {2 Grammar entries} * needed by grafite parser *) -val level2_ast_grammar: Grammar.g +val level2_ast_grammar: unit -> Grammar.g -val term : CicNotationPt.term Grammar.Entry.e +val term : unit -> CicNotationPt.term Grammar.Entry.e -val let_defs : +val let_defs : unit -> (CicNotationPt.term CicNotationPt.capture_variable list * CicNotationPt.term CicNotationPt.capture_variable * CicNotationPt.term * int) list Grammar.Entry.e -val protected_binder_vars : +val protected_binder_vars : unit -> (CicNotationPt.term list * CicNotationPt.term option) Grammar.Entry.e val parse_term: Ulexing.lexbuf -> CicNotationPt.term @@ -72,3 +75,5 @@ val parse_term: Ulexing.lexbuf -> CicNotationPt.term (** print "level2_pattern" entry on stdout, flushing afterwards *) val print_l2_pattern: unit -> unit +val push: unit -> unit +val pop: unit -> unit