comparison src/mono_opt.sml @ 649:96ebc6bdb5a0

Batch example
author Adam Chlipala <adamc@hcoop.net>
date Tue, 10 Mar 2009 15:17:23 -0400
parents 1e589a60b86f
children bab524996fca
comparison
equal deleted inserted replaced
648:3c6d535d3d8b 649:96ebc6bdb5a0
363 | ESignalBind ((ESignalReturn e1, loc), e2) => 363 | ESignalBind ((ESignalReturn e1, loc), e2) =>
364 optExp (EApp (e2, e1), loc) 364 optExp (EApp (e2, e1), loc)
365 365
366 | EJavaScript (_, _, SOME (e, _)) => e 366 | EJavaScript (_, _, SOME (e, _)) => e
367 367
368 | EApp ((e1 as EServerCall _, _), (ERecord [], _)) => e1
369
368 | _ => e 370 | _ => e
369 371
370 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e) 372 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e)
371 373
372 val optimize = U.File.map {typ = typ, exp = exp, decl = decl} 374 val optimize = U.File.map {typ = typ, exp = exp, decl = decl}