Mercurial > urweb
comparison src/elab_print.sml @ 188:8e9f97508f0d
Datatype representation optimization
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 03 Aug 2008 19:49:21 -0400 |
parents | d11754ffe252 |
children | aa54250f58ac |
comparison
equal
deleted
inserted
replaced
187:fb6ed259f5bd | 188:8e9f97508f0d |
---|---|
214 fun p_pat' par env (p, _) = | 214 fun p_pat' par env (p, _) = |
215 case p of | 215 case p of |
216 PWild => string "_" | 216 PWild => string "_" |
217 | PVar (s, _) => string s | 217 | PVar (s, _) => string s |
218 | PPrim p => Prim.p_t p | 218 | PPrim p => Prim.p_t p |
219 | PCon (pc, NONE) => p_patCon env pc | 219 | PCon (_, pc, NONE) => p_patCon env pc |
220 | PCon (pc, SOME p) => parenIf par (box [p_patCon env pc, | 220 | PCon (_, pc, SOME p) => parenIf par (box [p_patCon env pc, |
221 space, | 221 space, |
222 p_pat' true env p]) | 222 p_pat' true env p]) |
223 | PRecord xps => | 223 | PRecord xps => |
224 box [string "{", | 224 box [string "{", |
225 p_list_sep (box [string ",", space]) (fn (x, p, _) => | 225 p_list_sep (box [string ",", space]) (fn (x, p, _) => |
226 box [string x, | 226 box [string x, |
227 space, | 227 space, |