Skip to content

Commit 6c78ed3

Browse files
authored
Merge pull request Wasm-DSL#22 from dhil/wasmfx-fr-merge
Merge with WebAssembly/function-references
2 parents b585eb9 + 00b7aca commit 6c78ed3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: interpreter/dune-project

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
(implicit_transitive_deps false)
88

99
(license Apache-2.0)
10-
11-
(source
12-
(github WebAssembly/spec))
10+
(source (github WebAssembly/spec))
1311

1412
(authors "Andreas Rossberg <[email protected]")
1513
(maintainers "Andreas Rossberg <[email protected]")
@@ -20,4 +18,6 @@
2018
(tags (wasm webassembly spec interpreter))
2119
(depends
2220
(ocaml (>= 4.12))
23-
(menhir (>= 20220210))))
21+
(menhir (>= 20220210))
22+
)
23+
)

Diff for: interpreter/text/parser.mly

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ val_type :
375375
| ref_type { fun c -> RefT ($1 c) }
376376

377377
val_type_list :
378-
| /* empty */ { 0l, fun c -> [] }
379-
| val_type val_type_list { I32.add (fst $2) 1l, fun c -> $1 c :: snd $2 c }
378+
| list(val_type)
379+
{ Lib.List32.length $1, fun c -> List.map (fun f -> f c) $1 }
380380

381381
global_type :
382382
| val_type { fun c -> GlobalT (Cons, $1 c) }

0 commit comments

Comments
 (0)