Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Nov 10, 2023
1 parent 7d69731 commit e64d1c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion document/legacy/exceptions/exec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Control Instructions
\begin{array}{l}
F; \val^m~(\TRY~\X{bt}~\instr_1^\ast~(\CATCH~x~\instr_2^\ast)^\ast~(\CATCHALL~\instr_3^\ast)^?~\END
\quad \stepto \\
\qquad F; \LABEL_n\{\epsilon\}~(\HANDLER_n\{(\CATCH~a_x~\instr_2^\ast)^\ast~(\CATCHALL~\instr_3^\ast)^?\}~\val^m~\instr_1^\ast~\END)~\END \\
\qquad F; \LABEL_n\{\epsilon\}~(\HANDLER_n\{(\CATCH~a_x~\instr_2^\ast)^\ast~(\CATCHALL~\instr_3^\ast)^?\}~\val^m~\instr_1^\ast~\END)~\END \\ \qquad
(\iff \expand_F(\X{bt}) = [t_1^m] \to [t_2^n] \land (F.\AMODULE.\MITAGS[x]=a_x)^\ast)
\end{array}
Expand Down
7 changes: 5 additions & 2 deletions document/legacy/exceptions/valid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Existing typing rules are adjusted as follows:

* All rules that extend the context with new labels use an absent |LCATCH| flag.

* All rules that inspect the context for a label ignore the presence of an |LCATCH| flag.
* All rules that inspect the context for a label ignore the presence of a |LCATCH| flag.

.. note::
This flag is used to distinguish labels bound by catch clauses, which can be targeted by |RETHROW|.
Expand Down Expand Up @@ -74,6 +74,7 @@ Control Instructions
* Then the compound instruction is valid with type :math:`[t_1^\ast] \to [t_2^\ast]`.

.. math::
~\\
\frac{
\begin{array}{c}
C \vdashblocktype \blocktype : [t_1^\ast] \to [t_2^\ast]
Expand All @@ -89,7 +90,7 @@ Control Instructions
.. note::
The :ref:`notation <notation-extend>` :math:`C,\CLABELS\,(\LCATCH^?~[t^\ast])` inserts the new label type at index :math:`0`, shifting all others.
The :ref:`notation <notation-extend>` :math:`C,\CLABELS\,(\LCATCH~[t^\ast])` inserts the new label type at index :math:`0`, shifting all others.


.. _valid-try-delegate:
Expand All @@ -109,6 +110,7 @@ Control Instructions
* Then the compound instruction is valid with type :math:`[t_1^\ast] \to [t_2^\ast]`.

.. math::
~\\
\frac{
C \vdashblocktype \blocktype : [t_1^\ast] \to [t_2^\ast]
\qquad
Expand Down Expand Up @@ -138,6 +140,7 @@ Control Instructions


.. math::
~\\
\frac{
C.\CLABELS[l] = \LCATCH~[t^\ast]
}{
Expand Down

0 comments on commit e64d1c3

Please sign in to comment.