diff --git a/interpreter/.merlin b/interpreter/.merlin deleted file mode 100644 index 5af0cf09fb..0000000000 --- a/interpreter/.merlin +++ /dev/null @@ -1,12 +0,0 @@ -S binary -S exec -S host -S main -S runtime -S script -S syntax -S text -S util -S valid - -B _build/* diff --git a/interpreter/dune b/interpreter/dune new file mode 100644 index 0000000000..2b5cd3572d --- /dev/null +++ b/interpreter/dune @@ -0,0 +1,33 @@ +(include_subdirs unqualified) + +(library + (name wasm) + ; The 'main' module shall not be part of the library, as it would start the + ; WASM REPL every time in all the dependencies. + ; We also need to exclude the 'wasm' module as it overlaps with the library + ; name. + (modules :standard \ main wasm)) + +(executable + (name main) + (modules main) + (libraries wasm) + (flags + (-open Wasm))) + +(subdir + text + (rule + (target lexer.ml) + (deps lexer.mll) + (action + (chdir + %{workspace_root} + (run %{bin:ocamllex} -ml -q -o %{target} %{deps})))) + (ocamlyacc + (modules parser))) + +(env + (dev + (flags + (-w +a-4-27-42-44-45 -warn-error +a-3)))) diff --git a/interpreter/dune-project b/interpreter/dune-project new file mode 100644 index 0000000000..c994249ac2 --- /dev/null +++ b/interpreter/dune-project @@ -0,0 +1 @@ +(lang dune 2.9)