diff options
author | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2005-11-18 19:08:11 +0000 |
---|---|---|
committer | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2005-11-18 19:08:11 +0000 |
commit | 89df70511ac211f47a1aa29a21622103eff3b1c2 (patch) | |
tree | bf515e654f6ddf6a449c1593cfc8cd5650f84d75 /parsing | |
parent | 7f880dd442f1497dd7cc1eab1b226be8010ad716 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7584 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r-- | parsing/argextend.ml4 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/parsing/argextend.ml4 b/parsing/argextend.ml4 index 059a93571..66c2d3bf0 100644 --- a/parsing/argextend.ml4 +++ b/parsing/argextend.ml4 @@ -102,7 +102,8 @@ let make_act loc act pil = | Some (p, t) :: tl -> <:expr< Gramext.action - (fun $lid:p$ -> let _ = in_gen $make_rawwit loc t$ $lid:p$ in $make tl$) + (fun $lid:p$ -> + let _ = Genarg.in_gen $make_rawwit loc t$ $lid:p$ in $make tl$) >> in make (List.rev pil) @@ -122,19 +123,21 @@ let declare_tactic_argument for_v8 loc s typ pr f g h rawtyppr globtyppr cl = <:expr< fun e x -> out_gen $make_globwit loc typ$ (Tacinterp.intern_genarg e - (in_gen $make_rawwit loc rawtyp$ x)) >> + (Genarg.in_gen $make_rawwit loc rawtyp$ x)) >> | Some f -> <:expr< $lid:f$>> in let interp = match f with | None -> <:expr< fun ist gl x -> out_gen $make_wit loc typ$ - (Tacinterp.interp_genarg ist gl (in_gen $make_globwit loc globtyp$ x)) >> + (Tacinterp.interp_genarg ist gl + (Genarg.in_gen $make_globwit loc globtyp$ x)) >> | Some f -> <:expr< $lid:f$>> in let substitute = match h with | None -> <:expr< fun s x -> out_gen $make_globwit loc globtyp$ - (Tacinterp.subst_genarg s (in_gen $make_globwit loc globtyp$ x)) >> + (Tacinterp.subst_genarg s + (Genarg.in_gen $make_globwit loc globtyp$ x)) >> | Some f -> <:expr< $lid:f$>> in let se = mlexpr_of_string s in let wit = <:expr< $lid:"wit_"^s$ >> in @@ -148,11 +151,11 @@ let declare_tactic_argument for_v8 loc s typ pr f g h rawtyppr globtyppr cl = value $lid:s$ = Pcoq.create_generic_entry $se$ $rawwit$; Tacinterp.add_interp_genarg $se$ ((fun e x -> - (in_gen $globwit$ ($glob$ e (out_gen $rawwit$ x)))), + (Genarg.in_gen $globwit$ ($glob$ e (out_gen $rawwit$ x)))), (fun ist gl x -> - (in_gen $wit$ ($interp$ ist gl (out_gen $globwit$ x)))), + (Genarg.in_gen $wit$ ($interp$ ist gl (out_gen $globwit$ x)))), (fun subst x -> - (in_gen $globwit$ ($substitute$ subst (out_gen $globwit$ x))))); + (Genarg.in_gen $globwit$ ($substitute$ subst (out_gen $globwit$ x))))); Pcoq.Gram.extend ($lid:s$ : Pcoq.Gram.Entry.e 'a) None [(None, None, $rules$)]; Pptactic.declare_extra_genarg_pprule |