-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[interpreter] Turn into a Dune package
- Loading branch information
1 parent
c4699b1
commit d27227b
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(lang dune 2.9) |