Skip to content
Snippets Groups Projects
Commit f8b6a3c6 authored by Hugo Wangler's avatar Hugo Wangler
Browse files

Update HOME_EXAM.md

parent cdcca516
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ No error messages, except the already existing error messages from LALRPOP, have ...@@ -153,7 +153,7 @@ No error messages, except the already existing error messages from LALRPOP, have
- Give an as complete as possible Structural Operetional Semantics (SOS) for your language - Give an as complete as possible Structural Operetional Semantics (SOS) for your language
### Operators ### Operators
Given a expression $e$ in the state $\sigma$ that evaluates to a value $n$ or boolean $b$ the following can be said for the operators in the language Given a expression $`e`$ in the state $`\sigma`$ that evaluates to a value $`n`$ or boolean $`b`$ the following can be said for the operators in the language
#### Arithmetic #### Arithmetic
Addition: Addition:
...@@ -228,7 +228,9 @@ Not equals (!=): ...@@ -228,7 +228,9 @@ Not equals (!=):
```math ```math
\frac{\lang b, \sigma \rang \ \Downarrow \ \text{true} \quad \lang c1, \sigma \rang \ \Downarrow \ \sigma'}{\lang \text{if } b \text{ then } c1 \text{ else } c2, \sigma \rang \ \Downarrow \ \sigma'} \frac{\lang b, \sigma \rang \ \Downarrow \ \text{true} \quad \lang c1, \sigma \rang \ \Downarrow \ \sigma'}{\lang \text{if } b \text{ then } c1 \text{ else } c2, \sigma \rang \ \Downarrow \ \sigma'}
```
```math
\frac{\lang b, \sigma \rang \ \Downarrow \ \text{false} \quad \lang c2, \sigma \rang \ \Downarrow \ \sigma''}{\lang \text{if } b \text{ then } c1 \text{ else } c2, \sigma \rang \ \Downarrow \ \sigma''} \frac{\lang b, \sigma \rang \ \Downarrow \ \text{false} \quad \lang c2, \sigma \rang \ \Downarrow \ \sigma''}{\lang \text{if } b \text{ then } c1 \text{ else } c2, \sigma \rang \ \Downarrow \ \sigma''}
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment