diff options
author | 2017-10-28 19:04:50 +0200 | |
---|---|---|
committer | 2017-10-28 19:09:05 +0200 | |
commit | 32e5a48e9aba2c80491417b8a60067c9baad22be (patch) | |
tree | 63b2a93da10d9bab56c831449c9385c9b9b5f9f3 /toplevel/coqtop.mli | |
parent | ad973248998da8d7d10ed00f4bcd6f383ba9a171 (diff) |
[toplevel] Export the last document seen after `Drop`.
After `Drop`, `Coqtop.drop_last_doc` will contain the current document
used by `Coqloop`. This is useful for people wanting to restart Coq
after a `Drop`.
Diffstat (limited to 'toplevel/coqtop.mli')
-rw-r--r-- | toplevel/coqtop.mli | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toplevel/coqtop.mli b/toplevel/coqtop.mli index 1c7c3f944..5b9494eaa 100644 --- a/toplevel/coqtop.mli +++ b/toplevel/coqtop.mli @@ -15,6 +15,9 @@ val init_toplevel : string list -> (Stm.doc * Stateid.t) option val start : unit -> unit +(* Last document seen after `Drop` *) +val drop_last_doc : Stm.doc option ref + (* For other toploops *) val toploop_init : (string list -> string list) ref val toploop_run : (Stm.doc -> unit) ref |