diff options
| author | herbelin | 2003-05-21 22:38:38 +0000 |
|---|---|---|
| committer | herbelin | 2003-05-21 22:38:38 +0000 |
| commit | 4da48b01f420d8eccf6dcb2fea11bb4d9f8d8a86 (patch) | |
| tree | 611c3f9b178632a5b610d2031dcc1609d5c58419 /parsing/pptactic.ml | |
| parent | cb601622d7478ca2d61a4c186d992d532f141ace (diff) | |
Suppression définitive de lmatch et or_metanum dans tacinterp
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4054 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/pptactic.ml')
| -rw-r--r-- | parsing/pptactic.ml | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/parsing/pptactic.ml b/parsing/pptactic.ml index 0f26e390b8..3022fcbb19 100644 --- a/parsing/pptactic.ml +++ b/parsing/pptactic.ml @@ -83,10 +83,6 @@ let pi3 (_,_,a) = a let pr_arg pr x = spc () ++ pr x -let pr_or_metanum pr = function - | AN x -> pr x - | MetaNum (_,n) -> str "?" ++ pr_patvar n - let pr_or_var pr = function | ArgArg x -> pr x | ArgVar (_,s) -> pr_id s @@ -249,13 +245,13 @@ let rec pr_raw_generic prc prlc prtac x = | SortArgType -> pr_arg pr_sort (out_gen rawwit_sort x) | ConstrArgType -> pr_arg prc (out_gen rawwit_constr x) | ConstrMayEvalArgType -> - pr_arg (pr_may_eval prc (pr_or_metanum pr_reference)) + pr_arg (pr_may_eval prc pr_reference) (out_gen rawwit_constr_may_eval x) | QuantHypArgType -> pr_arg pr_quantified_hypothesis (out_gen rawwit_quant_hyp x) | RedExprArgType -> pr_arg (pr_red_expr - (prc,pr_or_metanum pr_reference)) (out_gen rawwit_red_expr x) + (prc,pr_reference)) (out_gen rawwit_red_expr x) | TacticArgType -> pr_arg prtac (out_gen rawwit_tactic x) | CastedOpenConstrArgType -> pr_arg prc (out_gen rawwit_casted_open_constr x) @@ -292,12 +288,12 @@ let rec pr_glob_generic prc prlc prtac x = | ConstrArgType -> pr_arg prc (out_gen globwit_constr x) | ConstrMayEvalArgType -> pr_arg (pr_may_eval prc - (pr_or_metanum (pr_or_var (pr_and_short_name pr_evaluable_reference)))) (out_gen globwit_constr_may_eval x) + (pr_or_var (pr_and_short_name pr_evaluable_reference))) (out_gen globwit_constr_may_eval x) | QuantHypArgType -> pr_arg pr_quantified_hypothesis (out_gen globwit_quant_hyp x) | RedExprArgType -> pr_arg (pr_red_expr - (prc,pr_or_metanum (pr_or_var (pr_and_short_name pr_evaluable_reference)))) (out_gen globwit_red_expr x) + (prc,pr_or_var (pr_and_short_name pr_evaluable_reference))) (out_gen globwit_red_expr x) | TacticArgType -> pr_arg prtac (out_gen globwit_tactic x) | CastedOpenConstrArgType -> pr_arg prc (out_gen globwit_casted_open_constr x) @@ -481,7 +477,7 @@ and pr_atom1 = function hov 1 (str "Decompose Sum" ++ pr_arg pr_constr c) | TacDecompose (l,c) -> hov 1 (str "Decompose" ++ spc () ++ - hov 0 (str "[" ++ prlist_with_sep spc (pr_or_metanum pr_ind) l + hov 0 (str "[" ++ prlist_with_sep spc pr_ind l ++ str "]")) | TacSpecialize (n,c) -> hov 1 (str "Specialize" ++ pr_opt int n ++ pr_with_bindings c) @@ -506,19 +502,19 @@ and pr_atom1 = function (* Context management *) | TacClear l -> - hov 1 (str "Clear" ++ spc () ++ prlist_with_sep spc (pr_or_metanum pr_id) l) + hov 1 (str "Clear" ++ spc () ++ prlist_with_sep spc pr_ident l) | TacClearBody l -> - hov 1 (str "Clear" ++ spc () ++ prlist_with_sep spc (pr_or_metanum pr_id) l) - | TacMove (b,(_,id1),(_,id2)) -> + hov 1 (str "Clear" ++ spc () ++ prlist_with_sep spc pr_ident l) + | TacMove (b,id1,id2) -> (* Rem: only b = true is available for users *) assert b; hov 1 - (str "Move" ++ brk (1,1) ++ pr_id id1 ++ spc () ++ - str "after" ++ brk (1,1) ++ pr_id id2) - | TacRename ((_,id1),(_,id2)) -> + (str "Move" ++ brk (1,1) ++ pr_ident id1 ++ spc () ++ + str "after" ++ brk (1,1) ++ pr_ident id2) + | TacRename (id1,id2) -> hov 1 - (str "Rename" ++ brk (1,1) ++ pr_id id1 ++ spc () ++ - str "into" ++ brk (1,1) ++ pr_id id2) + (str "Rename" ++ brk (1,1) ++ pr_ident id1 ++ spc () ++ + str "into" ++ brk (1,1) ++ pr_ident id2) (* Constructors *) | TacLeft l -> hov 1 (str "Left" ++ pr_bindings l) @@ -679,7 +675,7 @@ let rec glob_printers = pr_glob_tactic0, pr_and_constr_expr Ppconstr.pr_rawconstr, Printer.pr_pattern, - pr_or_metanum (pr_or_var (pr_and_short_name pr_evaluable_reference)), + pr_or_var (pr_and_short_name pr_evaluable_reference), pr_or_var pr_inductive, pr_or_var (pr_located pr_ltac_constant), pr_located pr_id, |
