2021-04-29 18:05:53 +03:00
|
|
|
open Driver
|
2020-12-26 19:37:41 +03:00
|
|
|
open Js_of_ocaml
|
|
|
|
|
|
|
|
let _ =
|
|
|
|
Js.export_all
|
|
|
|
(object%js
|
|
|
|
method interpret
|
|
|
|
(contents : Js.js_string Js.t)
|
|
|
|
(scope : Js.js_string Js.t)
|
|
|
|
(language : Js.js_string Js.t)
|
|
|
|
(trace : bool) =
|
|
|
|
driver
|
|
|
|
(Contents (Js.to_string contents))
|
2022-03-04 21:25:06 +03:00
|
|
|
{
|
|
|
|
Utils.Cli.debug = false;
|
2022-07-26 15:52:02 +03:00
|
|
|
color = Never;
|
2022-03-04 21:25:06 +03:00
|
|
|
wrap_weaved_output = false;
|
|
|
|
avoid_exceptions = false;
|
|
|
|
backend = "Interpret";
|
2022-03-04 20:32:03 +03:00
|
|
|
plugins_dirs = [];
|
2022-03-04 21:25:06 +03:00
|
|
|
language = Some (Js.to_string language);
|
|
|
|
max_prec_digits = None;
|
2022-04-11 11:59:02 +03:00
|
|
|
closure_conversion = false;
|
2022-03-28 16:16:03 +03:00
|
|
|
trace;
|
2022-03-04 21:25:06 +03:00
|
|
|
disable_counterexamples = false;
|
|
|
|
optimize = false;
|
|
|
|
ex_scope = Some (Js.to_string scope);
|
|
|
|
output_file = None;
|
2022-05-26 20:10:53 +03:00
|
|
|
print_only_law = false;
|
2022-03-04 21:25:06 +03:00
|
|
|
}
|
2020-12-26 19:37:41 +03:00
|
|
|
end)
|