@@ -230,9 +230,9 @@ instancedecl ::= 0x00 t:<core:type> => t
230230 | 0x01 t:<type> => t
231231 | 0x02 a:<alias> => a
232232 | 0x04 ed:<exportdecl> => ed
233- importdecl ::= na:<nameattributes> ed:<externdesc > => (import na ed )
234- exportdecl ::= na:<nameattributes> ed:<externdesc > => (export na ed )
235- externdesc ::= 0x00 0x11 i:<core:typeidx> => (core module (type i))
233+ importdecl ::= na:<nameattributes> et:<externtype > => (import na et )
234+ exportdecl ::= na:<nameattributes> et:<externtype > => (export na et )
235+ externtype ::= 0x00 0x11 i:<core:typeidx> => (core module (type i))
236236 | 0x01 i:<typeidx> => (func (type i))
237237 | 0x02 b:<valuebound> => (value b) 🪙
238238 | 0x03 b:<typebound> => (type b)
@@ -281,7 +281,7 @@ Notes:
281281 labels, flag labels, enum case labels, component import names, component
282282 export names, instance import names and instance export names must be
283283 [ strongly-unique] in their containing scope.
284- * Validation of ` externdesc ` requires the various ` typeidx ` type constructors
284+ * Validation of ` externtype ` requires the various ` typeidx ` type constructors
285285 to match the preceding ` sort ` .
286286* (The ` 0x00 ` immediate of ` case ` may be reinterpreted in the future as the
287287 ` none ` case of an optional immediate.)
@@ -394,8 +394,8 @@ flags are set.
394394(See [ Import and Export Definitions] ( Explainer.md#import-and-export-definitions )
395395in the explainer.)
396396``` ebnf
397- import ::= na:<nameattributes> ed:<externdesc > => (import na ed )
398- export ::= na:<nameattributes> si:<sortidx> ed ?:<externdesc >? => (export na si ed ?)
397+ import ::= na:<nameattributes> et:<externtype > => (import na et )
398+ export ::= na:<nameattributes> si:<sortidx> et ?:<externtype >? => (export na si et ?)
399399nameattributes ::= 0x00 len:<u32> en:<externname> => "en" (if len = |en|)
400400 | 0x01 len:<u32> en:<externname> => "en" (if len = |en|)
401401 | 0x02 len:<u32> en:<externname> a*:vec(<attribute>) => "en" a* (if len = |en|) 🏷️/🔗
@@ -409,10 +409,10 @@ Notes:
409409 definition and can be used by all subsequent definitions just like an alias.
410410* Validation requires that all resource types transitively used in the type of an
411411 export are introduced by a preceding ` importdecl ` or ` exportdecl ` .
412- * Validation requires any exported ` sortidx ` to have a valid ` externdesc `
412+ * Validation requires any exported ` sortidx ` to have a valid ` externtype `
413413 (which disallows core sorts other than ` core module ` ). When the optional
414- ` externdesc ` immediate is present, validation requires it to be a supertype
415- of the inferred ` externdesc ` of the ` sortidx ` .
414+ ` externtype ` immediate is present, validation requires it to be a supertype
415+ of the inferred ` externtype ` of the ` sortidx ` .
416416* ` <externname> ` , ` <interfacename> ` and ` <semversuffix> ` are defined as part of
417417 the [ text format] ( Explainer.md#import-and-export-definitions ) .
418418* The redundant ` 0x00 ` /` 0x01 ` cases of ` nameattributes ` will
0 commit comments