X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2FcicNotationParser.mli;h=0df3f83d06ad9f9ddc64a21b4a695f99f928652e;hb=ce98548577a44fafd17f1d9ce42bca1e6db104fc;hp=e25968bbbc4aa03cec62cda83aed3558086430e4;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/components/content_pres/cicNotationParser.mli b/helm/software/components/content_pres/cicNotationParser.mli index e25968bbb..0df3f83d0 100644 --- a/helm/software/components/content_pres/cicNotationParser.mli +++ b/helm/software/components/content_pres/cicNotationParser.mli @@ -26,10 +26,13 @@ exception Parse_error of string exception Level_not_found of int +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 @@ -39,10 +42,11 @@ 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 extend: - CicNotationPt.term -> (* level 1 pattern *) - precedence:int -> - associativity:Gramext.g_assoc -> + checked_l1_pattern -> (CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) -> rule_id @@ -56,9 +60,14 @@ val level2_ast_grammar: Grammar.g val term : CicNotationPt.term Grammar.Entry.e val let_defs : - (CicNotationPt.capture_variable * CicNotationPt.term * int) list + (CicNotationPt.term CicNotationPt.capture_variable list * CicNotationPt.term CicNotationPt.capture_variable * CicNotationPt.term * int) list Grammar.Entry.e +val protected_binder_vars : + (CicNotationPt.term list * CicNotationPt.term option) Grammar.Entry.e + +val parse_term: Ulexing.lexbuf -> CicNotationPt.term + (** {2 Debugging} *) (** print "level2_pattern" entry on stdout, flushing afterwards *)