Skip to content

Commit adc65a5

Browse files
committed
[interpreter] Some formatting
1 parent 659af80 commit adc65a5

File tree

1 file changed

+48
-43
lines changed

1 file changed

+48
-43
lines changed

interpreter/dune

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,69 @@
11
(include_subdirs unqualified)
22

33
(library
4-
(public_name wasm)
5-
; The 'wasm' module shall not be part of the library, as it would start the
6-
; Wasm REPL every time in all the dependencies.
7-
; We exclude the 'wast' module as it is only used for the JS build.
8-
; 'smallint' is a separate test module.
9-
(modules :standard \ main wasm smallint wast)
10-
(libraries menhirLib))
4+
(public_name wasm)
5+
; The 'wasm' module shall not be part of the library, as it would start the
6+
; Wasm REPL every time in all the dependencies.
7+
; We exclude the 'wast' module as it is only used for the JS build.
8+
; 'smallint' is a separate test module.
9+
(modules :standard \ main wasm smallint wast)
10+
(libraries menhirLib)
11+
)
1112

1213
(executable
13-
(public_name wasm)
14-
(modules wasm)
15-
(libraries wasm)
16-
(flags
17-
(-open Wasm)))
14+
(public_name wasm)
15+
(modules wasm)
16+
(libraries wasm)
17+
(flags (-open Wasm))
18+
)
1819

1920
(executable
20-
(name smallint)
21-
(modules smallint)
22-
(libraries wasm)
23-
(flags
24-
(-open Wasm)))
21+
(name smallint)
22+
(modules smallint)
23+
(libraries wasm)
24+
(flags (-open Wasm))
25+
)
2526

2627
(executable
2728
(name wast)
2829
(modules wast)
2930
(modes js)
3031
(libraries js_of_ocaml wasm)
31-
(preprocess (pps js_of_ocaml-ppx)))
32+
(preprocess (pps js_of_ocaml-ppx))
33+
)
3234

3335
(rule
3436
(targets wasm.ml)
3537
(deps main/main.ml)
36-
(action (copy main/main.ml wasm.ml)))
38+
(action (copy main/main.ml wasm.ml))
39+
)
3740

38-
(subdir
39-
text
40-
(rule
41-
(target lexer.ml)
42-
(deps lexer.mll)
43-
(action
44-
(chdir
45-
%{workspace_root}
46-
(run %{bin:ocamllex} -ml -q -o %{target} %{deps}))))
47-
(menhir
48-
(modules parser)))
41+
(subdir text
42+
(rule
43+
(target lexer.ml)
44+
(deps lexer.mll)
45+
(action
46+
(chdir %{workspace_root}
47+
(run %{bin:ocamllex} -ml -q -o %{target} %{deps})
48+
)
49+
)
50+
)
51+
(menhir (modules parser))
52+
)
4953

50-
(env
51-
(_
52-
(flags
53-
(-w +a-4-27-42-44-45-70 -warn-error +a-3))))
54+
(env (_ (flags (-w +a-4-27-42-44-45-70 -warn-error +a-3))))
5455

5556
(rule
56-
(alias runtest)
57-
(deps
58-
./wasm.exe
59-
./smallint.exe
60-
(source_tree ../test))
61-
(action
62-
(progn
63-
(run ../test/core/run.py --wasm ./wasm.exe)
64-
(run ./smallint.exe))))
57+
(alias runtest)
58+
(deps
59+
./wasm.exe
60+
./smallint.exe
61+
(source_tree ../test)
62+
)
63+
(action
64+
(progn
65+
(run ../test/core/run.py --wasm ./wasm.exe)
66+
(run ./smallint.exe)
67+
)
68+
)
69+
)

0 commit comments

Comments
 (0)