From 9b18f544a225d1341bfc2cdc7ffd33646b285169 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Tue, 12 Sep 2023 10:33:39 -0500 Subject: [PATCH] Update WIT.md package ids to match #222 --- design/mvp/WIT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/design/mvp/WIT.md b/design/mvp/WIT.md index 12d34f8a..f23573cf 100644 --- a/design/mvp/WIT.md +++ b/design/mvp/WIT.md @@ -867,7 +867,7 @@ WIT files optionally start with a package declaration which defines the ID of the package. ```ebnf -package-decl ::= 'package' id ':' id ('@' valid-semver)? +package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)? ``` The production `valid-semver` is as defined by @@ -883,7 +883,7 @@ convenience: toplevel-use-item ::= 'use' use-path ('as' id)? use-path ::= id - | id ':' id '/' id ('@' valid-semver)? + | ( id ':' )+ id ( '/' id )+ ('@' valid-semver)? ``` Here `use-path` is the ID used to refer to interfaces. The bare form `id`