X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2FcicNotationParser.mli;h=ba9003e90619594f5edcf108edb85cd6a4542e7c;hb=806ecbdd749ecf2a1cabff52b41cf748fe022401;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..ba9003e90 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,8 +42,10 @@ val parse_level2_meta: Ulexing.lexbuf -> CicNotationPt.term type rule_id -val check_l1_pattern: (* level1_pattern *) - CicNotationPt.term -> int -> Gramext.g_assoc -> checked_l1_pattern +val compare_rule_id : rule_id -> rule_id -> int + +val check_l1_pattern: (* level1_pattern, pponly, precedence, assoc *) + CicNotationPt.term -> bool -> int -> Gramext.g_assoc -> checked_l1_pattern val extend: 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