comparison src/elab_env.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
1530 | DSgn (x, n, sgn) => pushSgnNamedAs env x n sgn 1530 | DSgn (x, n, sgn) => pushSgnNamedAs env x n sgn
1531 | DStr (x, n, sgn, _) => pushStrNamedAs env x n sgn 1531 | DStr (x, n, sgn, _) => pushStrNamedAs env x n sgn
1532 | DFfiStr (x, n, sgn) => pushStrNamedAs env x n sgn 1532 | DFfiStr (x, n, sgn) => pushStrNamedAs env x n sgn
1533 | DConstraint _ => env 1533 | DConstraint _ => env
1534 | DExport _ => env 1534 | DExport _ => env
1535 | DTable (tn, x, n, c, _) => 1535 | DTable (tn, x, n, c, _, cc) =>
1536 let 1536 let
1537 val t = (CApp ((CModProj (tn, [], "sql_table"), loc), c), loc) 1537 val ct = (CModProj (tn, [], "sql_table"), loc)
1538 val ct = (CApp (ct, c), loc)
1539 val ct = (CApp (ct, cc), loc)
1538 in 1540 in
1539 pushENamedAs env x n t 1541 pushENamedAs env x n ct
1540 end 1542 end
1541 | DSequence (tn, x, n) => 1543 | DSequence (tn, x, n) =>
1542 let 1544 let
1543 val t = (CModProj (tn, [], "sql_sequence"), loc) 1545 val t = (CModProj (tn, [], "sql_sequence"), loc)
1544 in 1546 in