comparison src/mono_util.sml @ 94:40d146f467c5

Monoizing cdata
author Adam Chlipala <adamc@hcoop.net>
date Thu, 03 Jul 2008 17:39:17 -0400
parents 92361a008a10
children 82aaa1c406d3
comparison
equal deleted inserted replaced
93:94afff1ff7f6 94:40d146f467c5
131 (ERecord xes', loc)) 131 (ERecord xes', loc))
132 | EField (e, x) => 132 | EField (e, x) =>
133 S.map2 (mfe ctx e, 133 S.map2 (mfe ctx e,
134 fn e' => 134 fn e' =>
135 (EField (e', x), loc)) 135 (EField (e', x), loc))
136
137 | EStrcat (e1, e2) =>
138 S.bind2 (mfe ctx e1,
139 fn e1' =>
140 S.map2 (mfe ctx e2,
141 fn e2' =>
142 (EStrcat (e1', e2'), loc)))
136 in 143 in
137 mfe 144 mfe
138 end 145 end
139 146
140 fun mapfold {typ = fc, exp = fe} = 147 fun mapfold {typ = fc, exp = fe} =