@@ -880,18 +880,18 @@ into the scope of the current file and/or rename interfaces locally for
880
880
convenience:
881
881
882
882
``` ebnf
883
- toplevel-use-item ::= 'use' interface ('as' id)?
883
+ toplevel-use-item ::= 'use' use-path ('as' id)?
884
884
885
- interface ::= id
885
+ use-path ::= id
886
886
| id ':' id '/' id ('@' valid-semver)?
887
887
```
888
888
889
- Here ` interface ` is the ID used to refer to interfaces. The bare form ` id `
889
+ Here ` use-path ` is the ID used to refer to interfaces. The bare form ` id `
890
890
refers to interfaces defined within the current package, and the full form
891
891
refers to interfaces in package dependencies.
892
892
893
893
The ` as ` syntax can be optionally used to specify a name that should be assigned
894
- to the interface. Otherwise the name is inferred from ` interface ` .
894
+ to the interface. Otherwise the name is inferred from ` use-path ` .
895
895
896
896
## Item: ` world `
897
897
@@ -905,9 +905,9 @@ world-item ::= 'world' id '{' world-items* '}'
905
905
world-items ::= export-item | import-item | use-item | typedef-item | include-item
906
906
907
907
export-item ::= 'export' id ':' extern-type
908
- | 'export' interface
908
+ | 'export' use-path
909
909
import-item ::= 'import' id ':' extern-type
910
- | 'import' interface
910
+ | 'import' use-path
911
911
912
912
extern-type ::= func-type | 'interface' '{' interface-items* '}'
913
913
```
@@ -988,7 +988,7 @@ use my:dependency/the-interface.{more, names as foo}
988
988
Specifically the structure of this is:
989
989
990
990
``` ebnf
991
- use-item ::= 'use' interface '.' '{' use-names-list '}'
991
+ use-item ::= 'use' use-path '.' '{' use-names-list '}'
992
992
993
993
use-names-list ::= use-names-item
994
994
| use-names-item ',' use-names-list?
0 commit comments