src/Pure/ML-Systems/smlnj-pp-new.ML
changeset 21297 2b60e9b70a8c
parent 21296 3c245a8a5001
child 21298 6d2306b2376d
equal deleted inserted replaced
21296:3c245a8a5001 21297:2b60e9b70a8c
     1 (*  Title:      Pure/ML-Systems/smlnj-pp-new.ML
       
     2     ID:         $Id$
       
     3     Author:     Sebastian Skalberg (TU Muenchen)
       
     4 
       
     5 Installation of the pretty printer, using SML/NJ's new pretty printer
       
     6 interface.
       
     7 *)
       
     8 
       
     9 fun make_pp path pprint =
       
    10   let
       
    11     open Compiler.PrettyPrint;
       
    12 
       
    13     fun pp pps obj =
       
    14       pprint obj
       
    15         (string pps, openHOVBox pps o Rel,
       
    16           fn wd => break pps {nsp=wd, offset=0}, fn () => newline pps,
       
    17           fn () => closeBox pps);
       
    18   in
       
    19     (path, pp)
       
    20   end;