1234567891011121314151617181920212223(*
The MIT License
Copyright (c) 2021 Jason D. Nielsen <drjdnielsen@gmail.com>
*)openAstopenSexp_prettyletrecast_to_p5scm=function|Plisti->String.concat"\n"(List.mapast_to_p5scmi)|Slisti->"("^String.concat" "(List.mapast_to_p5scmi)^")"|Stlisti->"{"^String.concat" "(List.mapast_to_p5scmi)^"}"|Vlisti->"#("^String.concat" "(List.mapast_to_p5scmi)^")"|Alisti->"["^String.concat" "(List.mapast_to_p5scmi)^"]"|Lpatt(i,j)->"["^(ast_to_p5scmi)^" . "^(ast_to_p5scmj)^"]"|Atom(_,i)->i|Toplv(i,j)->utop_actionijandutop_actions1s2=matchs1with|"#require"->"(UTop.require ["^s2^"])"|"#use"->"(Toploop.use_file Format.std_formatter "^s2^")"|_->failwith"Not a known utop directive!"