X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2FcicNotationParser.ml;h=7aa4efe170cc3a52a32e9bfd2383ec06b7a5bbfc;hb=5412a7f12ed2034b4dfb6104440a2308d6a6e8e1;hp=5750ad816805a841d64b61fcecdb5c7c826924db;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/components/content_pres/cicNotationParser.ml b/helm/software/components/content_pres/cicNotationParser.ml index 5750ad816..7aa4efe17 100644 --- a/helm/software/components/content_pres/cicNotationParser.ml +++ b/helm/software/components/content_pres/cicNotationParser.ml @@ -450,6 +450,7 @@ EXTEND [ LPAREN; id = single_arg; SYMBOL ":"; typ = term; RPAREN -> id, Some typ | arg = single_arg -> arg, None + | SYMBOL "_" -> Ast.Ident ("_", None), None ] ]; match_pattern: [ @@ -637,6 +638,10 @@ let _ = parse_level2_ast_ref := parse_level2_ast; parse_level2_meta_ref := parse_level2_meta +let parse_term lexbuf = + exc_located_wrapper + (fun () -> (Grammar.Entry.parse term (Obj.magic lexbuf))) + (** {2 Debugging} *) let print_l2_pattern () =