You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: design/mvp/WIT.md
+25-8
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,9 @@ keyword ::= 'use'
112
112
| 'tuple'
113
113
| 'future'
114
114
| 'stream'
115
+
| 'world'
116
+
| 'import'
117
+
| 'export'
115
118
```
116
119
117
120
## Top-level items
@@ -122,20 +125,32 @@ readability but this isn't required.
122
125
123
126
Concretely, the structure of a `wit` document is:
124
127
```
125
-
wit-document ::= interface-item*
128
+
wit-document ::= (interface-item | world-item)*
126
129
```
127
130
128
-
## Item: `interface`
131
+
## Item: `world`
129
132
130
-
Interfaces can be defined in a `wit` document. Interfaces have a name and a sequence of items and functions.
133
+
Worlds define a [componenttype](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#type-definitions) as a collection of imports and exports.
0 commit comments