Skip to content

Commit 4056ff9

Browse files
authored
Rename "index type" to "address type" across the spec (#90)
* Rename "index type" to "address type" across the spec * Update "index type" to "address type" in the spec interpreter * Update section underlines It is very important that you have precisely the correct number of dots. It would be too much work for the computer otherwise. * Rename "address type" to "addr type" in the spec interpreter * Revert one stray interpreter update
1 parent aa4ff11 commit 4056ff9

File tree

30 files changed

+626
-626
lines changed

30 files changed

+626
-626
lines changed

document/core/appendix/properties.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ where :math:`\val_1 \gg^+_S \val_2` denotes the transitive closure of the follow
513513
.. index:: table type, table instance, limits, function address
514514
.. _valid-tableinst:
515515

516-
:ref:`Table Instances <syntax-tableinst>` :math:`\{ \TITYPE~\idxtype~\limits~t, \TIELEM~\reff^\ast \}`
517-
......................................................................................................
516+
:ref:`Table Instances <syntax-tableinst>` :math:`\{ \TITYPE~\addrtype~\limits~t, \TIELEM~\reff^\ast \}`
517+
.......................................................................................................
518518

519-
* The :ref:`table type <syntax-tabletype>` :math:`\idxtype~\limits~t` must be :ref:`valid <valid-tabletype>` under the empty :ref:`context <context>`.
519+
* The :ref:`table type <syntax-tabletype>` :math:`\addrtype~\limits~t` must be :ref:`valid <valid-tabletype>` under the empty :ref:`context <context>`.
520520

521521
* The length of :math:`\reff^\ast` must equal :math:`\limits.\LMIN`.
522522

@@ -526,41 +526,41 @@ where :math:`\val_1 \gg^+_S \val_2` denotes the transitive closure of the follow
526526

527527
* The :ref:`reference type <syntax-reftype>` :math:`t'_i` must :ref:`match <match-reftype>` the :ref:`reference type <syntax-reftype>` :math:`t`.
528528

529-
* Then the table instance is valid with :ref:`table type <syntax-tabletype>` :math:`\idxtype~\limits~t`.
529+
* Then the table instance is valid with :ref:`table type <syntax-tabletype>` :math:`\addrtype~\limits~t`.
530530

531531
.. math::
532532
\frac{
533-
\vdashtabletype \idxtype~\limits~t \ok
533+
\vdashtabletype \addrtype~\limits~t \ok
534534
\qquad
535535
n = \limits.\LMIN
536536
\qquad
537537
(S \vdash \reff : t')^n
538538
\qquad
539539
(\vdashreftypematch t' \matchesvaltype t)^n
540540
}{
541-
S \vdashtableinst \{ \TITYPE~\idxtype~\limits~t, \TIELEM~\reff^n \} : \idxtype~\limits~t
541+
S \vdashtableinst \{ \TITYPE~\addrtype~\limits~t, \TIELEM~\reff^n \} : \addrtype~\limits~t
542542
}
543543
544544
545545
.. index:: memory type, memory instance, limits, byte
546546
.. _valid-meminst:
547547

548-
:ref:`Memory Instances <syntax-meminst>` :math:`\{ \MITYPE~\idxtype~\limits, \MIDATA~b^\ast \}`
549-
...............................................................................................
548+
:ref:`Memory Instances <syntax-meminst>` :math:`\{ \MITYPE~\addrtype~\limits, \MIDATA~b^\ast \}`
549+
................................................................................................
550550

551-
* The :ref:`memory type <syntax-memtype>` :math:`\idxtype~\limits` must be :ref:`valid <valid-memtype>` under the empty :ref:`context <context>`.
551+
* The :ref:`memory type <syntax-memtype>` :math:`\addrtype~\limits` must be :ref:`valid <valid-memtype>` under the empty :ref:`context <context>`.
552552

553553
* The length of :math:`b^\ast` must equal :math:`\limits.\LMIN` multiplied by the :ref:`page size <page-size>` :math:`64\,\F{Ki}`.
554554

555-
* Then the memory instance is valid with :ref:`memory type <syntax-memtype>` :math:`\idxtype~\limits`.
555+
* Then the memory instance is valid with :ref:`memory type <syntax-memtype>` :math:`\addrtype~\limits`.
556556

557557
.. math::
558558
\frac{
559-
\vdashmemtype \idxtype~\limits \ok
559+
\vdashmemtype \addrtype~\limits \ok
560560
\qquad
561561
n = \limits.\LMIN \cdot 64\,\F{Ki}
562562
}{
563-
S \vdashmeminst \{ \MITYPE~\idxtype~\limits, \MIDATA~b^n \} : \idxtype~\limits
563+
S \vdashmeminst \{ \MITYPE~\addrtype~\limits, \MIDATA~b^n \} : \addrtype~\limits
564564
}
565565
566566

document/core/binary/types.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Additional shorthands are recognized for unary recursions and sub types without
251251
Limits
252252
~~~~~~
253253

254-
:ref:`Limits <syntax-limits>` are encoded with a preceding flag indicating whether a maximum is present, and the corresponsing index type.
254+
:ref:`Limits <syntax-limits>` are encoded with a preceding flag indicating whether a maximum is present, and the corresponding :ref:`address type <syntax-addrtype>`.
255255

256256
.. math::
257257
\begin{array}{llclll}
@@ -275,7 +275,7 @@ Memory Types
275275
.. math::
276276
\begin{array}{llclll@{\qquad\qquad}l}
277277
\production{memory type} & \Bmemtype &::=&
278-
(\X{it}, \X{lim}){:}\Blimits &\Rightarrow& \X{it}~~\X{lim} \\
278+
(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim} \\
279279
\end{array}
280280
281281
@@ -291,7 +291,7 @@ Table Types
291291
.. math::
292292
\begin{array}{llclll}
293293
\production{table type} & \Btabletype &::=&
294-
\X{et}{:}\Breftype~~(\X{it}, \X{lim}){:}\Blimits &\Rightarrow& \X{it}~~\X{lim}~\X{et} \\
294+
\X{et}{:}\Breftype~~(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim}~\X{et} \\
295295
\end{array}
296296
297297

0 commit comments

Comments
 (0)