From f754b7f3204446d62f31d89f9dd29e9bada18d33 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Thu, 28 Sep 2023 16:59:42 -0500 Subject: [PATCH 1/2] Move structured import/export name information into the string Resolves #253 --- design/mvp/Binary.md | 86 ++--- design/mvp/Explainer.md | 361 +++++++++--------- design/mvp/WIT.md | 89 ++--- design/mvp/examples/LinkTimeVirtualization.md | 8 +- 4 files changed, 255 insertions(+), 289 deletions(-) diff --git a/design/mvp/Binary.md b/design/mvp/Binary.md index b8799257..6f193931 100644 --- a/design/mvp/Binary.md +++ b/design/mvp/Binary.md @@ -73,6 +73,7 @@ instance ::= ie: => (i instanceexpr ::= 0x00 c: arg*:vec() => (instantiate c arg*) | 0x01 e*:vec() => e* instantiatearg ::= n: si: => (with n si) +string ::= s: => s sortidx ::= sort: idx: => (sort idx) sort ::= 0x00 cs: => core cs | 0x01 => func @@ -81,16 +82,6 @@ sort ::= 0x00 cs: => co | 0x04 => component | 0x05 => instance inlineexport ::= n: si: => (export n si) -string ::= s: => s -name ::= len: n: => n (if len = |n|) -name-chars ::= l: