Skip to content

Commit

Permalink
Type validation section; more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Mar 5, 2024
1 parent 8f404a0 commit 8bd2fa1
Show file tree
Hide file tree
Showing 16 changed files with 1,160 additions and 1,377 deletions.
10 changes: 5 additions & 5 deletions document/core/syntax/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ $${syntax: instr/parametric}
\SELECT~(\valtype^\ast)^? \\
\end{array}
The ${:NOP} instruction does nothing.

The ${:UNREACHABLE} instruction causes an unconditional :ref:`trap <trap>`.

The ${:DROP} instruction simply throws away a single operand.

The ${:SELECT} instruction selects one of its first two operands based on whether its third operand is zero or not.
Expand Down Expand Up @@ -602,7 +606,7 @@ Control Instructions

Instructions in this group affect the flow of control.

$${syntax: {instr/control instr/call}}
$${syntax: {instr/block instr/br instr/call}}

.. math::
\begin{array}{llrl}
Expand Down Expand Up @@ -631,10 +635,6 @@ $${syntax: {instr/control instr/call}}
\RETURNCALLINDIRECT~\tableidx~\typeidx \\
\end{array}
The ${:NOP} instruction does nothing.

The ${:UNREACHABLE} instruction causes an unconditional :ref:`trap <trap>`.

The ${:BLOCK}, ${:LOOP} and ${:IF} instructions are *structured* instructions.
They bracket nested sequences of instructions, called *blocks*, terminated with, or separated by, ${:END} or ${:ELSE} pseudo-instructions.
As the grammar prescribes, they must be well-nested.
Expand Down
Loading

0 comments on commit 8bd2fa1

Please sign in to comment.