comparison src/monoize.sml @ 118:7207f794b916

Serving pages with links
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jul 2008 15:47:18 -0400
parents ff13d390ec60
children 6230bdd122e7
comparison
equal deleted inserted replaced
117:94856a3b4752 118:7207f794b916
79 79
80 val dummyExp = (L'.EPrim (Prim.Int 0), E.dummySpan) 80 val dummyExp = (L'.EPrim (Prim.Int 0), E.dummySpan)
81 81
82 fun attrifyExp env (e, tAll as (t, loc)) = 82 fun attrifyExp env (e, tAll as (t, loc)) =
83 case #1 e of 83 case #1 e of
84 L'.EClosure (fnam, args) => 84 L'.EClosure (fnam, [(L'.ERecord [], _)]) =>
85 let
86 val (_, _, _, s) = Env.lookupENamed env fnam
87 in
88 (L'.EPrim (Prim.String s), loc)
89 end
90 | L'.EClosure (fnam, args) =>
85 let 91 let
86 val (_, ft, _, s) = Env.lookupENamed env fnam 92 val (_, ft, _, s) = Env.lookupENamed env fnam
87 val ft = monoType env ft 93 val ft = monoType env ft
88 94
89 fun attrify (args, ft, e) = 95 fun attrify (args, ft, e) =