File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ casetype ::= 0x00 =>
186
186
| 0x01 t:<valtype> => t
187
187
valtype ::= i:<typeidx> => i
188
188
| pvt:<primvaltype> => pvt
189
- functype ::= 0x40 p*:<prlist > r*:<prlist> => (func (param p)* (result r)*)
190
- prlist ::= 0x00 t:<valtype> => [t]
189
+ functype ::= 0x40 p*:<funcvec > r*:<funcvec> => (func (param p)* (result r)*)
190
+ funcvec ::= 0x00 t:<valtype> => [t]
191
191
| 0x01 nt*:vec(<namedvaltype>) => nt*
192
192
componenttype ::= 0x41 cd*:vec(<componentdecl>) => (component cd*)
193
193
instancetype ::= 0x42 id*:vec(<instancedecl>) => (instance id*)
Original file line number Diff line number Diff line change @@ -348,10 +348,10 @@ sleep: async func(ms: u64) -> ()
348
348
Specifically functions have the structure:
349
349
350
350
``` wit
351
- func-item ::= id ':' 'async'? 'func' func-tuple '->' func-tuple
351
+ func-item ::= id ':' 'async'? 'func' func-vec '->' func-vec
352
352
353
- func-tuple ::= ty
354
- | '(' func-named-type-list ')'
353
+ func-vec ::= ty
354
+ | '(' func-named-type-list ')'
355
355
356
356
func-named-type-list ::= nil
357
357
| func-named-type ( ',' func-named-type )*
You can’t perform that action at this time.
0 commit comments