Mercurial > urweb
comparison src/reduce.sml @ 705:e6706a1df013
Track uniqueness sets in table types
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 07 Apr 2009 14:11:32 -0400 |
parents | 70cbdcf5989b |
children | d8217b4cb617 |
comparison
equal
deleted
inserted
replaced
704:70cbdcf5989b | 705:e6706a1df013 |
---|---|
459 end | 459 end |
460 | DValRec vis => | 460 | DValRec vis => |
461 ((DValRec (map (fn (x, n, t, e, s) => (x, n, con namedC [] t, exp (namedC, namedE) [] e, s)) vis), loc), | 461 ((DValRec (map (fn (x, n, t, e, s) => (x, n, con namedC [] t, exp (namedC, namedE) [] e, s)) vis), loc), |
462 st) | 462 st) |
463 | DExport _ => (d, st) | 463 | DExport _ => (d, st) |
464 | DTable (s, n, c, s', e) => ((DTable (s, n, con namedC [] c, s', | 464 | DTable (s, n, c, s', e, cc) => ((DTable (s, n, con namedC [] c, s', |
465 exp (namedC, namedE) [] e), loc), st) | 465 exp (namedC, namedE) [] e, |
466 con namedC [] cc), loc), st) | |
466 | DSequence _ => (d, st) | 467 | DSequence _ => (d, st) |
467 | DDatabase _ => (d, st) | 468 | DDatabase _ => (d, st) |
468 | DCookie (s, n, c, s') => ((DCookie (s, n, con namedC [] c, s'), loc), st) | 469 | DCookie (s, n, c, s') => ((DCookie (s, n, con namedC [] c, s'), loc), st) |
469 | 470 |
470 val (file, _) = ListUtil.foldlMap doDecl (IM.empty, IM.empty) file | 471 val (file, _) = ListUtil.foldlMap doDecl (IM.empty, IM.empty) file |