Guest User

Untitled

a guest
May 5th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.38 KB | None | 0 0
  1. | While (b0,c0) ->
  2.         if (eval_bexp b0 sigma) then
  3.             begin match (eval_com c0 sigma) with
  4.                 | Normal (sigma') -> eval_com (While(b0, c0)) sigma'
  5.                 | Exceptional(_,_) as e -> e
  6.             end
  7.         else
  8.             Normal(sigma)
  9. | TryCatch(c1,x,c2) ->
  10.             begin match eval_com c1 sigma with
  11.             | Normal(sigma') -> Normal(sigma')
  12.             | Exceptional (sigma', n) -> eval_com c2 (update sigma' x n)
  13.             end
Advertisement
Add Comment
Please, Sign In to add comment