comparison src/explify.sml @ 1199:c316ca3c9ec6

Pushing policies through
author Adam Chlipala <adamc@hcoop.net>
date Sun, 04 Apr 2010 12:29:34 -0400
parents 0657e5adc938
children b4480a56cab7
comparison
equal deleted inserted replaced
1197:6d8e3dcb9713 1199:c316ca3c9ec6
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.DTask (e1, e2) => SOME (L'.DTask (explifyExp e1, explifyExp e2), loc) 198 | L.DTask (e1, e2) => SOME (L'.DTask (explifyExp e1, explifyExp e2), loc)
199 | L.DPolicy e1 => SOME (L'.DPolicy (explifyExp e1), loc)
199 200
200 and explifyStr (str, loc) = 201 and explifyStr (str, loc) =
201 case str of 202 case str of
202 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) 203 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc)
203 | L.StrVar n => (L'.StrVar n, loc) 204 | L.StrVar n => (L'.StrVar n, loc)