comparison src/cjrize.sml @ 164:6847741e1f5f

Datatypes through monoize
author Adam Chlipala <adamc@hcoop.net>
date Tue, 29 Jul 2008 13:32:07 -0400
parents f0d3402184d1
children e52dfb1e6b19
comparison
equal deleted inserted replaced
163:80192edca30d 164:6847741e1f5f
158 | L.EClosure _ => (ErrorMsg.errorAt loc "Nested closure remains in code generation"; 158 | L.EClosure _ => (ErrorMsg.errorAt loc "Nested closure remains in code generation";
159 (dummye, sm)) 159 (dummye, sm))
160 160
161 fun cifyDecl ((d, loc), sm) = 161 fun cifyDecl ((d, loc), sm) =
162 case d of 162 case d of
163 L.DVal (x, n, t, e, _) => 163 L.DDatatype _ => raise Fail "Cjrize DDatatype"
164
165 | L.DVal (x, n, t, e, _) =>
164 let 166 let
165 val (t, sm) = cifyTyp (t, sm) 167 val (t, sm) = cifyTyp (t, sm)
166 168
167 val (d, sm) = case #1 t of 169 val (d, sm) = case #1 t of
168 L'.TFun _ => 170 L'.TFun _ =>