Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply workaround for Coq 8.6 and Coq 8.7 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions coq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ and coq_parse_next_evar_info scan_buf uninst inst () =
Scanf.bscanf scan_buf "%c" (function
| '?' -> coq_parse_one_evar_info scan_buf uninst inst
| ')' -> (List.rev uninst, List.rev inst)
| '(' -> ([], []) (* workaround for Coq 8.6 *)
| c ->
raise (Scanf.Scan_failure
(Printf.sprintf
Expand Down Expand Up @@ -134,6 +135,8 @@ and coq_parse_next_evar_info scan_buf uninst inst () =
displayed.
*)
let coq_parse_existential_info ex_string =
if String.length ex_string <= 0 then ([], []) (* for Coq 8.7 *)
else
let scan_buf = Scanf.Scanning.from_string ex_string in
try
Scanf.bscanf scan_buf "(dependent evars: "
Expand Down