diff options
author | 2005-01-02 08:48:46 +0000 | |
---|---|---|
committer | 2005-01-02 08:48:46 +0000 | |
commit | 38f06f8024d3f338983105ffdb323ccd7c0db935 (patch) | |
tree | d499a88f2f92f3ec0444c69d6c51d32334d43041 /toplevel | |
parent | 6684253c156d0a8c775bcf534ed602060d65c234 (diff) |
Renommage symbols.ml{,i} en notation.ml{,i} pour permettre le chargement de printers dans ocamldebug; partie reduction_of_red_expr de tacred.ml qui dépend de la vm maintenant dans redexpr.ml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6550 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/command.ml | 6 | ||||
-rw-r--r-- | toplevel/vernacentries.ml | 23 |
2 files changed, 15 insertions, 14 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml index a7f39f053..42e18fadc 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -18,7 +18,7 @@ open Entries open Inductive open Environ open Reduction -open Tacred +open Redexpr open Declare open Nametab open Names @@ -37,7 +37,7 @@ open Indtypes open Vernacexpr open Decl_kinds open Pretyping -open Symbols +open Notation let mkLambdaCit = List.fold_right (fun (x,a) b -> mkLambdaC(x,a,b)) let mkProdCit = List.fold_right (fun (x,a) b -> mkProdC(x,a,b)) @@ -124,7 +124,7 @@ let red_constant_entry bl ce = function | Some red -> let body = ce.const_entry_body in { ce with const_entry_body = - under_binders (Global.env()) (reduction_of_redexp red) + under_binders (Global.env()) (reduction_of_red_expr red) (length_of_raw_binders bl) body } diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml index 7a6379964..f8ce873d1 100644 --- a/toplevel/vernacentries.ml +++ b/toplevel/vernacentries.ml @@ -33,6 +33,7 @@ open Vernacexpr open Decl_kinds open Topconstr open Pretyping +open Redexpr (* Pcoq hooks *) @@ -247,10 +248,10 @@ let vernac_delimiters = Metasyntax.add_delimiters let vernac_bind_scope sc cll = List.iter (fun cl -> Metasyntax.add_class_scope sc (cl_of_qualid cl)) cll -let vernac_open_close_scope = Symbols.open_close_scope +let vernac_open_close_scope = Notation.open_close_scope let vernac_arguments_scope qid scl = - Symbols.declare_arguments_scope (global qid) scl + Notation.declare_arguments_scope (global qid) scl let vernac_infix = Metasyntax.add_infix @@ -830,11 +831,11 @@ let _ = let vernac_set_opacity opaq locqid = match Nametab.global locqid with | ConstRef sp -> - if opaq then Tacred.set_opaque_const sp - else Tacred.set_transparent_const sp + if opaq then set_opaque_const sp + else set_transparent_const sp | VarRef id -> - if opaq then Tacred.set_opaque_var id - else Tacred.set_transparent_var id + if opaq then set_opaque_var id + else set_transparent_var id | _ -> error "cannot set an inductive type or a constructor as transparent" let vernac_set_option key = function @@ -889,7 +890,7 @@ let vernac_check_may_eval redexp glopt rc = if !pcoq <> None then (out_some !pcoq).print_check j else msg (print_judgment env j) | Some r -> - let redfun = Tacred.reduction_of_redexp (interp_redexp env evmap r) in + let redfun = reduction_of_red_expr (interp_redexp env evmap r) in if !pcoq <> None then (out_some !pcoq).print_eval (redfun env evmap) env rc j else msg (print_eval redfun env j) @@ -934,11 +935,11 @@ let vernac_print = function | PrintHintDb -> Auto.print_searchtable () | PrintSetoids -> Setoid_replace.print_setoids() | PrintScopes -> - pp (Symbols.pr_scopes (Constrextern.without_symbols pr_rawterm)) + pp (Notation.pr_scopes (Constrextern.without_symbols pr_rawterm)) | PrintScope s -> - pp (Symbols.pr_scope (Constrextern.without_symbols pr_rawterm) s) + pp (Notation.pr_scope (Constrextern.without_symbols pr_rawterm) s) | PrintVisibility s -> - pp (Symbols.pr_visibility (Constrextern.without_symbols pr_rawterm) s) + pp (Notation.pr_visibility (Constrextern.without_symbols pr_rawterm) s) | PrintAbout qid -> msgnl (print_about qid) | PrintImplicit qid -> msg (print_impargs qid) @@ -980,7 +981,7 @@ let vernac_locate = function | LocateModule qid -> print_located_module qid | LocateFile f -> locate_file f | LocateNotation ntn -> - ppnl (Symbols.locate_notation (Constrextern.without_symbols pr_rawterm) + ppnl (Notation.locate_notation (Constrextern.without_symbols pr_rawterm) (Metasyntax.standardise_locatable_notation ntn)) (********************) |