#format #scheme #s-expr

app schemat

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

46 releases

Uses new Rust 2024

0.4.0 Apr 22, 2025
0.3.1 Mar 8, 2025
0.2.11 Oct 24, 2024
0.2.9 Feb 4, 2024
0.1.16 Jul 21, 2023

#162 in Parser implementations

Download history 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 19/week @ 2025-03-12 16/week @ 2025-03-19 7/week @ 2025-04-02 153/week @ 2025-04-09 198/week @ 2025-04-16 94/week @ 2025-04-23

452 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

~6–14MB
~163K SLoC