From 4eff66abc309ec9833ab55427de90ab682ee430b Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Thu, 28 Sep 2023 16:59:42 -0500 Subject: [PATCH] Move structured import/export name information into the string --- design/mvp/Explainer.md | 313 ++++++++++-------- design/mvp/WIT.md | 78 +++-- design/mvp/examples/LinkTimeVirtualization.md | 8 +- 3 files changed, 208 insertions(+), 191 deletions(-) diff --git a/design/mvp/Explainer.md b/design/mvp/Explainer.md index 424110d8..a42ae492 100644 --- a/design/mvp/Explainer.md +++ b/design/mvp/Explainer.md @@ -195,14 +195,14 @@ an example of these, we'll also need the `alias` definitions introduced in the next section. The syntax for defining component instances is symmetric to core module -instances, but with an expanded component-level definition of `sort` and -more restricted version of `name`: +instances, but with an expanded component-level definition of `sort`: ```ebnf instance ::= (instance ? ) instanceexpr ::= (instantiate *) | * instantiatearg ::= (with ) | (with (instance *)) +string ::= sortidx ::= ( ) sort ::= core | func @@ -211,15 +211,6 @@ sort ::= core | component | instance inlineexport ::= (export ) -string ::= -name ::=