sexp :: SExp :: recurse_to_s
private fun recurse_to_s(depth: Int): String do var s = "{"\t" * depth}(\n" for i in content do if i isa SExp then s += i.recurse_to_s(depth + 1) s += "\n" continue end s += "\t" * (depth + 1) s += i.to_s s += "\n" end return s + "{"\t" * depth})" end