#format #scheme #s-expr

app schemat

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

47 releases

Uses new Rust 2024

new 0.4.1 May 19, 2025
0.3.3 Apr 22, 2025
0.3.1 Mar 8, 2025
0.2.11 Oct 24, 2024
0.1.16 Jul 21, 2023

#163 in Parser implementations

Download history 226/week @ 2025-02-01 43/week @ 2025-02-08 22/week @ 2025-02-15 7/week @ 2025-02-22 21/week @ 2025-03-01 144/week @ 2025-03-08 12/week @ 2025-03-15 13/week @ 2025-03-22 4/week @ 2025-03-29 131/week @ 2025-04-05 36/week @ 2025-04-12 240/week @ 2025-04-19 53/week @ 2025-04-26 25/week @ 2025-05-03 44/week @ 2025-05-10 125/week @ 2025-05-17

257 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 install schemat

Usage

schemat < in.scm > out.scm

License

The Unlicense

Dependencies

~5–13MB
~148K SLoC