src/Pure/General/path.ML
changeset 62819 d3ff367a16a0
parent 62663 bea354f6ff21
child 65999 ee4cf96a9406
equal deleted inserted replaced
62818:2733b240bfea 62819:d3ff367a16a0
   171   let val s = implode_path path
   171   let val s = implode_path path
   172   in Pretty.mark (Markup.path s) (Pretty.str (quote s)) end;
   172   in Pretty.mark (Markup.path s) (Pretty.str (quote s)) end;
   173 
   173 
   174 val print = Pretty.unformatted_string_of o pretty;
   174 val print = Pretty.unformatted_string_of o pretty;
   175 
   175 
   176 val _ = PolyML.addPrettyPrinter (fn _ => fn _ => Pretty.to_polyml o pretty);
   176 val _ = ML_system_pp (fn _ => fn _ => Pretty.to_polyml o pretty);
   177 
   177 
   178 
   178 
   179 (* base element *)
   179 (* base element *)
   180 
   180 
   181 fun split_path f (Path (Basic s :: xs)) = f (Path xs, s)
   181 fun split_path f (Path (Basic s :: xs)) = f (Path xs, s)