#lisp #scheme #s-expr #formatter #language #format #brackets

nightly app schemat

A code formatter for Scheme, Lisp, and any S-expressions

43 releases

Uses new Rust 2024

new 0.3.1 Mar 8, 2025
0.2.15 Feb 4, 2025
0.2.11 Oct 24, 2024
0.2.9 Feb 4, 2024
0.1.16 Jul 21, 2023

#157 in Parser implementations

Download history 12/week @ 2024-11-20 4/week @ 2024-11-27 8/week @ 2024-12-04 48/week @ 2024-12-11 7/week @ 2024-12-18 32/week @ 2024-12-25 2/week @ 2025-01-01 189/week @ 2025-01-08 175/week @ 2025-01-15 23/week @ 2025-01-22 130/week @ 2025-01-29 135/week @ 2025-02-05 26/week @ 2025-02-12 9/week @ 2025-02-19 21/week @ 2025-02-26 137/week @ 2025-03-05

195 downloads per month

Unlicense

120KB
3.5K SLoC

schemat

GitHub Action Crate License

A code formatter for Scheme, Lisp, and any S-expressions.

It supports:

  • S-expressions
    • Parenthesis: ( and )
    • Brackets: [ and ]
    • Braces: { and }
  • Comments: Lines starting with ;
  • Quotes: ', `, and ,
  • Hash directives
    • Shebang (e.g. #!/usr/bin/env gsi)
    • Language shorthand in Racket (e.g. #lang racket)

Install

cargo +nightly install schemat

Usage

schemat < in.scm > out.scm

License

The Unlicense

Dependencies

~5–14MB
~158K SLoC