equal
deleted
inserted
replaced
113 |
113 |
114 fun ml_pprint pps = |
114 fun ml_pprint pps = |
115 let |
115 let |
116 fun str "" = () |
116 fun str "" = () |
117 | str s = PrettyPrint.string pps s; |
117 | str s = PrettyPrint.string pps s; |
118 fun pprint (ML_Pretty.Block ((bg, en), prts, ind)) = |
118 fun pprint (ML_Pretty.Block ((bg, en), consistent, ind, prts)) = |
119 (str bg; PrettyPrint.openHOVBox pps (PrettyPrint.Rel (dest_int ind)); |
119 (str bg; |
120 List.app pprint prts; PrettyPrint.closeBox pps; str en) |
120 (if consistent then PrettyPrint.openHVBox else PrettyPrint.openHOVBox) pps |
|
121 (PrettyPrint.Rel (dest_int ind)); |
|
122 List.app pprint prts; PrettyPrint.closeBox pps; |
|
123 str en) |
121 | pprint (ML_Pretty.String (s, _)) = str s |
124 | pprint (ML_Pretty.String (s, _)) = str s |
122 | pprint (ML_Pretty.Break (false, width, offset)) = |
125 | pprint (ML_Pretty.Break (false, width, offset)) = |
123 PrettyPrint.break pps {nsp = dest_int width, offset = dest_int offset} |
126 PrettyPrint.break pps {nsp = dest_int width, offset = dest_int offset} |
124 | pprint (ML_Pretty.Break (true, _, _)) = PrettyPrint.newline pps; |
127 | pprint (ML_Pretty.Break (true, _, _)) = PrettyPrint.newline pps; |
125 in pprint end; |
128 in pprint end; |