Skip to content

Commit de5b9be

Browse files
committed
Add 'optional' imports/exports
1 parent 225cc90 commit de5b9be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

design/mvp/Explainer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,9 @@ instancedecl ::= core-prefix(<core:type>)
618618
| <exportdecl>
619619
importdecl ::= (import <externnamelit> <attribute>* bind-id(<externtype>))
620620
exportdecl ::= (export <externnamelit> <attribute>* bind-id(<externtype>))
621-
externtype ::= (<sort> (type <u32>) )
621+
externtype ::= (optional <someexterntype>)
622+
| <someexterntype>
623+
someexterntype ::= (<sort> (type <u32>) )
622624
| core-prefix(<core:moduletype>)
623625
| <functype>
624626
| <componenttype>

0 commit comments

Comments
 (0)