Skip to content

Commit 5a6a7fb

Browse files
[spec] Clarifying note on text format (WebAssembly#1420)
Signed-off-by: Adrian Cole <[email protected]> Co-authored-by: Andreas Rossberg <[email protected]>
1 parent f2086a4 commit 5a6a7fb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

document/core/text/modules.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ Functions can be defined as :ref:`imports <text-import>` or :ref:`exports <text-
250250
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
251251
\end{array}
252252
253-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export.
253+
.. note::
254+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
255+
Consequently, a function declaration can contain any number of exports, possibly followed by an import.
254256

255257

256258
.. index:: table, table type, identifier
@@ -319,7 +321,9 @@ Tables can be defined as :ref:`imports <text-import>` or :ref:`exports <text-exp
319321
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
320322
\end{array}
321323
322-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export or an inline elements segment.
324+
.. note::
325+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
326+
Consequently, a table declaration can contain any number of exports, possibly followed by an import.
323327

324328

325329
.. index:: memory, memory type, identifier
@@ -379,7 +383,9 @@ Memories can be defined as :ref:`imports <text-import>` or :ref:`exports <text-e
379383
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
380384
\end{array}
381385
382-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export or an inline data segment.
386+
.. note::
387+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
388+
Consequently, a memory declaration can contain any number of exports, possibly followed by an import.
383389

384390

385391
.. index:: global, global type, identifier, expression
@@ -423,7 +429,9 @@ Globals can be defined as :ref:`imports <text-import>` or :ref:`exports <text-ex
423429
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
424430
\end{array}
425431
426-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export.
432+
.. note::
433+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
434+
Consequently, a global declaration can contain any number of exports, possibly followed by an import.
427435

428436

429437
.. index:: export, name, index, function index, table index, memory index, global index

0 commit comments

Comments
 (0)