The read function (lex+parse) in lisp is really handy for building little analysis or metaprogramming tools. The runtime has it, so why not allow users to use it?
However, there's no equivalent for just lexing AFAIK. It's a shame because the same arguments apply!
parinfer-mode is a really fun way to edit lisp code: https://github.com/DogLooksGood/parinfer-mode
Things like sexp convolute are just unindent, swap lines, reindent. Convolute is much easier to show than describe:
(when foo
(let (bar)
(baz)))
to:
(let (bar)
(when foo
(baz)))
Really cute Clojure project that builds a full parse tree (i.e including whitespace), allows code to transform the _abstract_ syntax tree, then splices the changed sexp whilst preserving source comments! https://vimeo.com/45695419
Enables code transformations that look like macros.