Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 02f5b3c

Browse files
authored
Merge pull request #427 from WebAssembly/text-typedef
Rename text "deftype" to "typedef"
2 parents 675cda6 + aba1ace commit 02f5b3c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

document/core/text/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ The definition of the initial :ref:`identifier context <text-context>` :math:`I`
670670

671671
.. math::
672672
\begin{array}{@{}lcl@{\qquad\qquad}l}
673-
\F{idc}(\text{(}~\text{rec}~~\Tdeftype^\ast~\text{)}) &=&
674-
\bigcompose \F{idc}(\Tdeftype)^\ast \\
673+
\F{idc}(\text{(}~\text{rec}~~\Ttypedef^\ast~\text{)}) &=&
674+
\bigcompose \F{idc}(\Ttypedef)^\ast \\
675675
\F{idc}(\text{(}~\text{type}~\Tid^?~\Tsubtype~\text{)}) &=&
676676
\{\ITYPES~(\Tid^?), \IFIELDS~\F{idf}(\Tsubtype), \ITYPEDEFS~\X{st}\} \\
677677
\F{idc}(\text{(}~\text{func}~\Tid^?~\dots~\text{)}) &=&

document/core/text/types.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,17 @@ Composite Types
241241
pair: text format; sub type
242242
.. _text-rectype:
243243
.. _text-subtype:
244-
.. _text-deftype:
244+
.. _text-typedef:
245245

246246
Recursive Types
247247
~~~~~~~~~~~~~~~
248248

249249
.. math::
250250
\begin{array}{llclll@{\qquad\qquad}l}
251251
\production{recursive type} & \Trectype_I &::=&
252-
\text{(}~\text{rec}~~\X{st}^\ast{:\,}\Tvec(\Tdeftype_I)~\text{)}
252+
\text{(}~\text{rec}~~\X{st}^\ast{:\,}\Tvec(\Ttypedef_I)~\text{)}
253253
&\Rightarrow& \TREC~\X{st}^\ast \\
254-
\production{defined type} & \Tdeftype_I &::=&
254+
\production{defined type} & \Ttypedef_I &::=&
255255
\text{(}~\text{type}~~\Tid^?~~\X{st}{:}\Tsubtype_I~\text{)}
256256
&\Rightarrow& \X{st} \\
257257
\production{sub type} & \Tsubtype_I &::=&
@@ -268,8 +268,8 @@ Singular recursive types can omit the :math:`\text{rec}` keyword:
268268
.. math::
269269
\begin{array}{llclll}
270270
\production{recursive type} &
271-
\Tsubtype &\equiv&
272-
\text{(}~~\text{rec}~~\Tsubtype~~\text{)} \\
271+
\Ttypedef &\equiv&
272+
\text{(}~~\text{rec}~~\Ttypedef~~\text{)} \\
273273
\end{array}
274274
275275
Similarly, final sub types with no super-types can omit the |Tsub| keyword and arguments:

document/core/util/macros.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@
908908
.. |Tpackedtype| mathdef:: \xref{text/types}{text-packedtype}{\T{packedtype}}
909909
.. |Tcomptype| mathdef:: \xref{text/types}{text-comptype}{\T{comptype}}
910910
.. |Tsubtype| mathdef:: \xref{text/types}{text-subtype}{\T{subtype}}
911-
.. |Tdeftype| mathdef:: \xref{text/types}{text-deftype}{\T{deftype}}
911+
.. |Ttypedef| mathdef:: \xref{text/types}{text-typedef}{\T{typedef}}
912912
.. |Trectype| mathdef:: \xref{text/types}{text-rectype}{\T{rectype}}
913913

914914
.. |Tglobaltype| mathdef:: \xref{text/types}{text-globaltype}{\T{globaltype}}

0 commit comments

Comments
 (0)