catala/compiler/catala_web_interpreter.ml

17 lines
454 B
OCaml
Raw Normal View History

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))
false false false "Interpret"
(Some (Js.to_string language))
2022-01-26 19:15:06 +03:00
None trace false false
(Some (Js.to_string scope))
None
end)