blob: 30143e5b3f394cc3c8e49db47e9e0c70050741e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
;;; TOOL: wat-desugar
(module
(import "foo" "bar" (func (result i32)))
(global i32 (i32.const 1))
(table funcref (elem 0))
(memory (data "hello"))
(func (result i32)
(i32.add (call 0) (i32.load8_s (i32.const 1)))))
(;; STDOUT ;;;
(module
(import "foo" "bar" (func (;0;) (result i32)))
(global (;0;) i32 (i32.const 1))
(table (;0;) 1 1 funcref)
(elem (;0;) (i32.const 0) func 0)
(memory (;0;) 1 1)
(data (;0;) (i32.const 0) "hello")
(func (;1;) (result i32)
call 0
i32.const 1
i32.load8_s
i32.add)
(type (;0;) (func (result i32))))
;;; STDOUT ;;)
|