Mercurial > urweb
comparison src/corify.sml @ 68:c1e21ab42896
Explify cfold
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 26 Jun 2008 09:51:28 -0400 |
parents | d37518b67bd2 |
children | 8e9920db39f2 |
comparison
equal
deleted
inserted
replaced
67:9f89f0b00b84 | 68:c1e21ab42896 |
---|---|
242 | L.CName s => (L'.CName s, loc) | 242 | L.CName s => (L'.CName s, loc) |
243 | 243 |
244 | L.CRecord (k, xcs) => | 244 | L.CRecord (k, xcs) => |
245 (L'.CRecord (corifyKind k, map (fn (c1, c2) => (corifyCon st c1, corifyCon st c2)) xcs), loc) | 245 (L'.CRecord (corifyKind k, map (fn (c1, c2) => (corifyCon st c1, corifyCon st c2)) xcs), loc) |
246 | L.CConcat (c1, c2) => (L'.CConcat (corifyCon st c1, corifyCon st c2), loc) | 246 | L.CConcat (c1, c2) => (L'.CConcat (corifyCon st c1, corifyCon st c2), loc) |
247 | L.CFold _ => raise Fail "Corify CFold" | |
247 | 248 |
248 fun corifyExp st (e, loc) = | 249 fun corifyExp st (e, loc) = |
249 case e of | 250 case e of |
250 L.EPrim p => (L'.EPrim p, loc) | 251 L.EPrim p => (L'.EPrim p, loc) |
251 | L.ERel n => (L'.ERel n, loc) | 252 | L.ERel n => (L'.ERel n, loc) |