mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-29 10:08:47 +00:00
Lectures
This commit is contained in:
parent
96a659c976
commit
273ea318d8
4 changed files with 44 additions and 32 deletions
|
|
@ -53,10 +53,14 @@ With the relation ``$\Rightarrow$'' defined we can abbreviate the ``surface'' se
|
|||
|
||||
|
||||
\begin{figure}[t]
|
||||
\arraycolsep=10pt
|
||||
\[\trans{\inbr{\sigma,\, \iota,\, o}}{\llang{x := $\;\;e$}}{\inbr{\sigma\,[x\gets\sembr{e}_{\mathscr E}\;\sigma],\, \iota,\, o}}\ruleno{Assign}\]
|
||||
\[\trans{\inbr{\sigma,\, z\iota,\, o}}{\llang{read ($x$)}}{\inbr{\sigma\,[x\gets z],\, \iota,\, o}}\ruleno{Read}\]
|
||||
\[\trans{\inbr{\sigma,\, \iota,\, o}}{\llang{write ($e$)}}{\inbr{\sigma,\, \iota,\, o(\sembr{e}_{\mathscr E}\;\sigma)}}\ruleno{Write}\]
|
||||
\[\trule{\trans{c_1}{S_1}{c^\prime},\;\trans{c^\prime}{S_2}{c_2}}{\trans{c_1}{S_1\llang{;}S_2}{c_2}}\ruleno{Seq}\]
|
||||
\[\trule{\begin{array}{cc}
|
||||
\trans{c_1}{S_1}{c^\prime} & \trans{c^\prime}{S_2}{c_2}
|
||||
\end{array}}
|
||||
{\trans{c_1}{S_1\llang{;}S_2}{c_2}}\ruleno{Seq}\]
|
||||
\caption{Big-step operational semantics for statements}
|
||||
\label{bs_stmt}
|
||||
\end{figure}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue