/s

An s-expression formatter for the command line

Primary LanguagePython

$ echo '(HVM.store (String.cons 49 (String.cons 46 (String.cons 111 (String.cons 117 (String.cons 116 (String.nil)))))) (List.cons (Reverse (List.cons (String.nil) (List.cons (String.cons 48 (Str
ing.cons 48 (String.cons 48 (String.cons 57 (String.nil))))) (List.cons (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 56 (String.nil))))) (List.cons (String.cons 48 (String.cons 48 (String.cons 4
8 (String.cons 55 (String.nil))))) (List.cons (String.nil) (List.cons (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 54 (String.nil))))) (List.cons (String.cons 48 (String.cons 48 (String.cons 48
(String.cons 53 (String.nil))))) (List.cons (String.nil) (List.cons (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 52 (String.nil))))) (List.cons (String.nil) (List.cons (String.cons 48 (String.co
ns 48 (String.cons 48 (String.cons 51 (String.nil))))) (List.cons (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 50 (String.nil))))) (List.cons (String.cons 48 (String.cons 48 (String.cons 48 (Str
ing.cons 49 (String.nil))))) (List.nil))))))))))))))) (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 48 (String.cons 49 (String.nil))))))) (Done))' \
| s
(HVM.store
 (String.cons 49
  (String.cons 46
   (String.cons 111
    (String.cons 117
     (String.cons 116
      (String.nil))))))
 (List.cons
  (Reverse
   (List.cons
    (String.nil)
    (List.cons
     (String.cons 48
      (String.cons 48
       (String.cons 48
        (String.cons 57
         (String.nil)))))
     (List.cons
      (String.cons 48
...