mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 15:48:47 +00:00
Added pattern-matching in lectures
This commit is contained in:
parent
dad4c35a80
commit
d89cd76cd9
11 changed files with 247 additions and 27 deletions
|
|
@ -87,14 +87,14 @@ Then, updating the state:
|
|||
As an empty state, we take the following triple:
|
||||
|
||||
\[
|
||||
\bot=\inbr{\bot,\,\emptyset,\,\bot}
|
||||
\Lambda=\inbr{\Lambda,\,\emptyset,\,\Lambda}
|
||||
\]
|
||||
|
||||
Finally, we need two transformations for states:
|
||||
|
||||
\[
|
||||
\begin{array}{rcl}
|
||||
\primi{enter}{\inbr{\sigma_g,\,\_,\,\_}\,S} & = & \inbr{\sigma_g,\,S,\,\bot}\\
|
||||
\primi{enter}{\inbr{\sigma_g,\,\_,\,\_}\,S} & = & \inbr{\sigma_g,\,S,\,\Lambda}\\
|
||||
\primi{leave}{\inbr{\sigma_g,\,\_,\,\_}\,\inbr{\_,\,S,\,\sigma_l}}& = & \inbr{\sigma_g,\,S,\,\sigma_l}
|
||||
\end{array}
|
||||
\]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue