catala/compiler/catala_web_interpreter.ml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
OCaml
Raw Normal View History

2022-11-21 12:46:17 +03:00
open Catala_utils
open Driver
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-11-21 12:46:17 +03:00
Cli.debug = false;
color = Never;
wrap_weaved_output = false;
avoid_exceptions = false;
backend = "Interpret";
plugins_dirs = [];
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;
trace;
2023-03-31 17:55:51 +03:00
disable_warnings = true;
disable_counterexamples = false;
optimize = false;
check_invariants = false;
ex_scope = Some (Js.to_string scope);
2023-04-07 18:10:02 +03:00
ex_variable = None;
output_file = None;
2022-05-26 20:10:53 +03:00
print_only_law = false;
link_modules = [];
}
end)