File tree Expand file tree Collapse file tree 2 files changed +45
-54
lines changed Expand file tree Collapse file tree 2 files changed +45
-54
lines changed Original file line number Diff line number Diff line change 1
1
(include_subdirs unqualified)
2
2
3
3
(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
+ (modules :standard \ main wasm wast smallint)
6
+ )
11
7
12
8
(executable
13
- (public_name wasm)
14
- (modules wasm)
15
- (libraries wasm)
16
- (flags
17
- (-open Wasm)) )
9
+ (public_name wasm)
10
+ (modules wasm)
11
+ (libraries wasm)
12
+ (flags (-open Wasm))
13
+ )
18
14
19
15
(executable
20
- (name smallint)
21
- (modules smallint)
22
- (libraries wasm)
23
- (flags
24
- (-open Wasm)) )
16
+ (name smallint)
17
+ (modules smallint)
18
+ (libraries wasm)
19
+ (flags (-open Wasm))
20
+ )
25
21
26
22
(executable
27
23
(name wast)
28
24
(modules wast)
29
25
(modes js)
30
26
(libraries js_of_ocaml wasm)
31
- (preprocess (pps js_of_ocaml-ppx)))
27
+ (preprocess (pps js_of_ocaml-ppx))
28
+ )
29
+
30
+ (env (_ (flags (-w +a-4-27-42-44-45-70 -warn-error +a-3))))
31
+
32
+ (subdir text
33
+ (ocamllex (modules lexer))
34
+ (menhir (modules parser))
35
+ )
32
36
33
37
(rule
34
38
(targets wasm.ml)
35
39
(deps main/main.ml)
36
- (action (copy main/main.ml wasm.ml)))
37
-
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)))
49
-
50
- (env
51
- (_
52
- (flags
53
- (-w +a-4-27-42-44-45-70 -warn-error +a-3))))
40
+ (action (copy main/main.ml wasm.ml))
41
+ )
54
42
55
43
(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))))
44
+ (alias runtest)
45
+ (deps
46
+ ./wasm.exe
47
+ ./smallint.exe
48
+ (source_tree ../test)
49
+ )
50
+ (action
51
+ (progn
52
+ (run ../test/core/run.py --wasm ./wasm.exe)
53
+ (run ./smallint.exe)
54
+ )
55
+ )
56
+ )
Original file line number Diff line number Diff line change 1
1
(lang dune 2 .9)
2
2
3
3
(name wasm)
4
-
5
- ( generate_opam_files true )
6
- (using menhir 2 .1)
7
- ( implicit_transitive_deps false )
8
-
9
4
( license Apache-2.0)
10
-
11
- ( source
12
- ( github WebAssembly/spec) )
5
+ ( source ( github WebAssembly/spec) )
13
6
14
7
( authors
" Andreas Rossberg <[email protected] " )
15
8
( maintainers
" Andreas Rossberg <[email protected] " )
16
9
10
+ ( generate_opam_files true )
11
+ (using menhir 2 .1)
12
+ ( implicit_transitive_deps false )
13
+
17
14
( package
18
15
(name wasm)
19
16
(synopsis " Library to read and write WebAssembly (Wasm) files and manipulate their AST" )
20
17
( tags ( wasm webassembly spec interpreter) )
21
18
( depends
22
19
( ocaml ( >= 4 .12) )
23
- (menhir ( >= 20220210 ) )) )
20
+ (menhir ( >= 20220210 ) )
21
+ )
22
+ )
You can’t perform that action at this time.
0 commit comments