-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathdiamond.wat
More file actions
91 lines (91 loc) · 2.67 KB
/
diamond.wat
File metadata and controls
91 lines (91 loc) · 2.67 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
(component
(type (;0;)
(component
(type (;0;)
(instance
(type (;0;) (enum "a"))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(export (;0;) (interface "foo:foo/shared-items") (instance (type 0)))
(type (;1;)
(component
(type (;0;)
(instance
(type (;0;) (enum "a"))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import (interface "foo:foo/shared-items") (instance (;0;) (type 0)))
(alias export 0 "the-enum" (type (;1;)))
(type (;2;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(export (;1;) "bar" (instance (type 2)))
)
)
(export (;0;) (interface "foo:foo/w3") (component (type 1)))
(type (;2;)
(component
(type (;0;)
(instance
(type (;0;) (enum "a"))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import (interface "foo:foo/shared-items") (instance (;0;) (type 0)))
(alias export 0 "the-enum" (type (;1;)))
(type (;2;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import "foo" (instance (;1;) (type 2)))
(type (;3;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(export (;2;) "bar" (instance (type 3)))
)
)
(export (;1;) (interface "foo:foo/w2") (component (type 2)))
(type (;3;)
(component
(type (;0;)
(instance
(type (;0;) (enum "a"))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import (interface "foo:foo/shared-items") (instance (;0;) (type 0)))
(alias export 0 "the-enum" (type (;1;)))
(type (;2;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import "foo" (instance (;1;) (type 2)))
(type (;3;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-enum" (type (eq 0)))
)
)
(import "bar" (instance (;2;) (type 3)))
)
)
(export (;2;) (interface "foo:foo/w1") (component (type 3)))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
(export (;1;) (interface "foo:foo/wit") (type 0))
)