comparison src/reduce_local.sml @ 1020:dfe34fad749d

RPC uses VM support for call/cc
author Adam Chlipala <adamc@hcoop.net>
date Sun, 25 Oct 2009 14:07:10 -0400
parents 2a50da66ffd8
children 3bc726a822fb
comparison
equal deleted inserted replaced
1019:68ba074e260f 1020:dfe34fad749d
137 | EWrite e => (EWrite (exp env e), loc) 137 | EWrite e => (EWrite (exp env e), loc)
138 | EClosure (n, es) => (EClosure (n, map (exp env) es), loc) 138 | EClosure (n, es) => (EClosure (n, map (exp env) es), loc)
139 139
140 | ELet (x, t, e1, e2) => (ELet (x, t, exp env e1, exp (Unknown :: env) e2), loc) 140 | ELet (x, t, e1, e2) => (ELet (x, t, exp env e1, exp (Unknown :: env) e2), loc)
141 141
142 | EServerCall (n, es, e, t1, t2) => (EServerCall (n, map (exp env) es, exp env e, t1, t2), loc) 142 | EServerCall (n, es, t) => (EServerCall (n, map (exp env) es, t), loc)
143 | ETailCall (n, es, e, t1, t2) => (ETailCall (n, map (exp env) es, exp env e, t1, t2), loc)
144 143
145 fun reduce file = 144 fun reduce file =
146 let 145 let
147 fun doDecl (d as (_, loc)) = 146 fun doDecl (d as (_, loc)) =
148 case #1 d of 147 case #1 d of