2022-11-21 12:46:17 +03:00
|
|
|
open Catala_utils
|
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) =
|
2023-06-15 18:37:52 +03:00
|
|
|
driver `Interpret
|
2020-12-26 19:37:41 +03:00
|
|
|
(Contents (Js.to_string contents))
|
2022-03-04 21:25:06 +03:00
|
|
|
{
|
2022-11-21 12:46:17 +03:00
|
|
|
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;
|
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;
|
2023-04-18 10:49:12 +03:00
|
|
|
message_format = Human;
|
2022-03-28 16:16:03 +03:00
|
|
|
trace;
|
2023-03-31 17:55:51 +03:00
|
|
|
disable_warnings = true;
|
2022-03-04 21:25:06 +03:00
|
|
|
disable_counterexamples = false;
|
|
|
|
optimize = false;
|
2023-04-14 12:32:49 +03:00
|
|
|
check_invariants = false;
|
2022-03-04 21:25:06 +03:00
|
|
|
ex_scope = Some (Js.to_string scope);
|
2023-04-07 18:10:02 +03:00
|
|
|
ex_variable = None;
|
2022-03-04 21:25:06 +03:00
|
|
|
output_file = None;
|
2022-05-26 20:10:53 +03:00
|
|
|
print_only_law = false;
|
2023-06-13 15:50:22 +03:00
|
|
|
link_modules = [];
|
2022-03-04 21:25:06 +03:00
|
|
|
}
|
2020-12-26 19:37:41 +03:00
|
|
|
end)
|