bhick
This commit is contained in:
@@ -50,6 +50,8 @@ imgmath_latex_preamble = r'''
|
||||
\end{tblr} }
|
||||
|
||||
\newcommand{\nillist}{[\,]}
|
||||
|
||||
\newcommand{\concat}{+\kern-1.3ex+\kern0.8ex}
|
||||
'''
|
||||
|
||||
imgmath_image_format = 'svg'
|
||||
|
||||
@@ -363,6 +363,47 @@ Core Transition Rules
|
||||
& m
|
||||
}
|
||||
|
||||
#. Pack a constructor if there are sufficient arguments
|
||||
|
||||
.. math::
|
||||
\gmrule
|
||||
{ \mathtt{Pack} \; t \; n : i
|
||||
& a_1 : \ldots : a_n : s
|
||||
& d
|
||||
& h
|
||||
& m
|
||||
}
|
||||
{ i
|
||||
& a : s
|
||||
& d
|
||||
& h
|
||||
\begin{bmatrix}
|
||||
a : \mathtt{NConstr} \; t \; [a_1,\ldots,a_n]
|
||||
\end{bmatrix}
|
||||
& m
|
||||
}
|
||||
|
||||
#. Evaluate a case
|
||||
|
||||
.. math::
|
||||
\gmrule
|
||||
{ \mathtt{CaseJump} \begin{bmatrix} t \to c \end{bmatrix} : i
|
||||
& a : s
|
||||
& d
|
||||
& h
|
||||
\begin{bmatrix}
|
||||
a : \mathtt{NConstr} \; t \; v
|
||||
\end{bmatrix}
|
||||
& m
|
||||
}
|
||||
{ c \concat i
|
||||
& d
|
||||
& h
|
||||
& m
|
||||
}
|
||||
|
||||
|
||||
|
||||
***************
|
||||
Extension Rules
|
||||
***************
|
||||
|
||||
Reference in New Issue
Block a user