comparison src/explify.sml @ 1075:0657e5adc938

Convert to task syntax
author Adam Chlipala <adamc@hcoop.net>
date Tue, 15 Dec 2009 10:19:05 -0500
parents b2311dfb3158
children c316ca3c9ec6
comparison
equal deleted inserted replaced
1074:d89f98f0b4bb 1075:0657e5adc938
193 | L.DClass (x, n, k, c) => SOME (L'.DCon (x, n, 193 | L.DClass (x, n, k, c) => SOME (L'.DCon (x, n,
194 (L'.KArrow (explifyKind k, (L'.KType, loc)), loc), explifyCon c), loc) 194 (L'.KArrow (explifyKind k, (L'.KType, loc)), loc), explifyCon c), loc)
195 | L.DDatabase s => SOME (L'.DDatabase s, loc) 195 | L.DDatabase s => SOME (L'.DDatabase s, loc)
196 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc) 196 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc)
197 | L.DStyle (nt, x, n) => SOME (L'.DStyle (nt, x, n), loc) 197 | L.DStyle (nt, x, n) => SOME (L'.DStyle (nt, x, n), loc)
198 | L.DInitializer e => SOME (L'.DInitializer (explifyExp e), loc) 198 | L.DTask (e1, e2) => SOME (L'.DTask (explifyExp e1, explifyExp e2), loc)
199 199
200 and explifyStr (str, loc) = 200 and explifyStr (str, loc) =
201 case str of 201 case str of
202 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) 202 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc)
203 | L.StrVar n => (L'.StrVar n, loc) 203 | L.StrVar n => (L'.StrVar n, loc)