Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. exec (SeqStmt []) penv env = ("exn: No match in env2", H.empty, H.empty)
  2. exec (SeqStmt (x:xs)) penv env = aux (x:xs) "" penv env
  3. where aux [] x penv env = (x, penv, env)
  4. aux (s:ss) x penv env = aux ss (x++j) (H.union penv1 penv) (H.union env1 env)
  5. where (j, penv1, env1) = exec s penv env
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement