Mercurial > urweb
comparison src/tag.sml @ 125:fd98dd10dce7
Corifying (non-mutual) 'val rec'
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 17 Jul 2008 10:23:04 -0400 |
parents | 7fdc146b2bc2 |
children | 76a4d69719d8 |
comparison
equal
deleted
inserted
replaced
124:541282b81454 | 125:fd98dd10dce7 |
---|---|
130 let | 130 let |
131 val count = foldl (fn ((d, _), count) => | 131 val count = foldl (fn ((d, _), count) => |
132 case d of | 132 case d of |
133 DCon (_, n, _, _) => Int.max (n, count) | 133 DCon (_, n, _, _) => Int.max (n, count) |
134 | DVal (_, n, _, _, _) => Int.max (n, count) | 134 | DVal (_, n, _, _, _) => Int.max (n, count) |
135 | DValRec vis => foldl (fn ((_, n, _, _, _), count) => Int.max (n, count)) count vis | |
135 | DExport _ => count) 0 file | 136 | DExport _ => count) 0 file |
136 | 137 |
137 fun doDecl (d as (d', loc), (env, count, tags, byTag)) = | 138 fun doDecl (d as (d', loc), (env, count, tags, byTag)) = |
138 case d' of | 139 case d' of |
139 DExport n => | 140 DExport n => |