Go backward to Valuation Functions Go up to Top Go forward to Error Handling |
C[[C1; C2]] = C[[C1]] check-cmd C[[C2]]
Command = State ->
Post-state_|_
check-cmd: Command × Command -> Command
h1 check-cmd h2 =
lambda a. let z = h1(a) in
cases z of
isOK(s, i, o) -> h2(s, i, o)
isErr(s, i, o) -> z
end
Similar for check of expression results.