#s-expr #indent #sexp #indenter #dumb-as-rocks #indent-sexp

yanked indent-s-expr

Dumb-as-rocks S-expression indenter

1.0.1 Feb 21, 2024

#16 in #sexp

MIT license

10KB
254 lines

indent-s-expr

Dumb-as-rocks S-expression indenter.

Example

use indent_s_expr::indent_sexp;

indent_sexp("(+ (alpha / beta) (gamma * delta))", 2);
/*

(
  +
  (
    alpha
    /
    beta
  )
  (
    gamma
    *
    delta
  )
)

*/

No runtime deps