comparison src/explify.sml @ 2010:403f0cc65b9c

New lessSafeFfi
author Adam Chlipala <adam@chlipala.net>
date Fri, 02 May 2014 19:19:09 -0400
parents 1aa9629e3a4c
children 22117edf8fd3
comparison
equal deleted inserted replaced
2009:799be3911ce3 2010:403f0cc65b9c
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 | L.DPolicy e1 => SOME (L'.DPolicy (explifyExp e1), loc)
200 | L.DOnError v => SOME (L'.DOnError v, loc) 200 | L.DOnError v => SOME (L'.DOnError v, loc)
201 | L.DFfi (x, n, modes, t) => SOME (L'.DFfi (x, n, modes, explifyCon t), loc)
201 202
202 and explifyStr (str, loc) = 203 and explifyStr (str, loc) =
203 case str of 204 case str of
204 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) 205 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc)
205 | L.StrVar n => (L'.StrVar n, loc) 206 | L.StrVar n => (L'.StrVar n, loc)