Skip to content

Commit a8f8b83

Browse files
authored
Adapt to rocq-prover/rocq#18624 (Tac2ffi / Tac2val split) (#23)
2 parents 9fd8b13 + 5b95268 commit a8f8b83

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/tac2compile.ml

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let rawstr s = quote (str (String.escaped s))
6060
so instead of eg "Some 1" we have "ValBlk (0, [|ValInt 1|])"
6161
6262
All other names are user names. As such to access coq-core values we must qualify them,
63-
eg "Tac2ffi.mk_closure_val" etc
63+
eg "Tac2val.mk_closure_val" etc
6464
*)
6565

6666
let keywords =
@@ -223,7 +223,7 @@ let rec pp_arity n =
223223

224224
let pp_arity n =
225225
assert (n >= 1);
226-
str "Tac2ffi.(" ++ pp_arity n ++ str ")"
226+
str "Tac2val.(" ++ pp_arity n ++ str ")"
227227

228228
let rec pp_binders = function
229229
| [] -> mt()
@@ -732,7 +732,7 @@ let pp_when_clauses w =
732732

733733
let pp_mk_closure_val arity f =
734734
surround
735-
(str "Tac2ffi.mk_closure_val" ++ spc() ++
735+
(str "Tac2val.mk_closure_val" ++ spc() ++
736736
pp_arity arity ++ spc() ++ f)
737737

738738
let pp_var x = function
@@ -777,7 +777,7 @@ let rec pp_nontac_expr = function
777777
| Ctor (i, es) -> str "(ValBlk (" ++ int i ++ str ", [|" ++ pp_val_list es ++ str "|]))"
778778
| PrjV (e, i) ->
779779
surround
780-
(str "Tac2ffi.Valexpr.field" ++ spc() ++ pp_nontac_expr e ++ spc() ++ int i)
780+
(str "Tac2val.Valexpr.field" ++ spc() ++ pp_nontac_expr e ++ spc() ++ int i)
781781
| Opn (kn, es) ->
782782
surround
783783
(str "Tac2ffi.of_open" ++ spc() ++
@@ -837,7 +837,7 @@ and pp_head_expr = function
837837
begin match hinfo with
838838
| None ->
839839
surround
840-
(str "Tac2ffi.apply_val" ++ spc() ++ pp_nontac_expr h ++ spc() ++
840+
(str "Tac2val.apply_val" ++ spc() ++ pp_nontac_expr h ++ spc() ++
841841
surround (str "[" ++ pp_val_list args ++ str "]"))
842842
| Some x ->
843843
surround
@@ -920,10 +920,10 @@ and pp_head_expr = function
920920
| PrjMut (e, i) ->
921921
str "PV.tclUNIT" ++ spc() ++
922922
surround
923-
(str "Tac2ffi.Valexpr.field" ++ spc() ++ pp_nontac_expr e ++ spc() ++ int i)
923+
(str "Tac2val.Valexpr.field" ++ spc() ++ pp_nontac_expr e ++ spc() ++ int i)
924924

925925
| Set (e1,i,e2) ->
926-
h (str "let () = Tac2ffi.Valexpr.set_field" ++ spc() ++
926+
h (str "let () = Tac2val.Valexpr.set_field" ++ spc() ++
927927
pp_nontac_expr e1 ++ spc() ++ int i ++ spc() ++
928928
pp_nontac_expr e2 ++ spc()) ++
929929
str "in" ++ spc() ++
@@ -969,7 +969,7 @@ let prelude prefix =
969969
str "open Names" ++ fnl() ++
970970
str "open Ltac2_plugin" ++ fnl() ++
971971
str "open Ltac2_compiler" ++ fnl() ++
972-
str "open Tac2ffi" ++ fnl() ++
972+
str "open Tac2val" ++ fnl() ++
973973
str "module PV = Proofview" ++ fnl() ++
974974
str "open PV.Notations" ++ fnl()
975975

src/tac2compiledPrim.ml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
open Names
1212
open Ltac2_plugin
13+
open Tac2val
1314
open Tac2ffi
1415
open Proofview.Notations
1516

src/tac2compiledPrim.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
(* * (see LICENSE file for the text of the license) *)
99
(************************************************************************)
1010

11-
open Ltac2_plugin.Tac2ffi
11+
open Ltac2_plugin.Tac2val
1212
open Proofview
1313

1414
val array_empty : valexpr -> valexpr tactic

0 commit comments

Comments
 (0)