Mercurial > hg > Papers > 2021 > soto-thesis
annotate paper/src/agda-hoare-interpret.agda.replaced @ 14:a63df15c9afc default tip
DONE
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2021 23:36:39 +0900 |
parents | 959f4b34d6f4 |
children |
rev | line source |
---|---|
3 | 1 {-@$\#$@ TERMINATING @$\#$@-} |
2 interpret : Env @$\rightarrow$@ Comm @$\rightarrow$@ Env | |
3 interpret env Skip = env | |
4 interpret env Abort = env | |
5 interpret env (PComm x) = x env | |
6 interpret env (Seq comm comm1) = interpret (interpret env comm) comm1 | |
7 interpret env (If x then else) with x env | |
8 ... | true = interpret env then | |
9 ... | false = interpret env else | |
10 interpret env (While x comm) with x env | |
11 ... | true = interpret (interpret env comm) (While x comm) | |
12 ... | false = env | |
13 |