Skip to content

Commit

Permalink
[spec] Clarifying note on text format (WebAssembly#1420)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Andreas Rossberg <rossberg@mpi-sws.org>
  • Loading branch information
codefromthecrypt and rossberg committed Mar 1, 2023
1 parent 8ccc5e0 commit f5c240e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions document/core/text/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ Functions can be defined as :ref:`imports <text-import>` or :ref:`exports <text-
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
\end{array}
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export.
.. note::
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
Consequently, a function declaration can contain any number of exports, possibly followed by an import.


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


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


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


.. index:: export, name, index, function index, table index, memory index, global index
Expand Down

0 comments on commit f5c240e

Please sign in to comment.