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

nightly app schemat

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

42 releases

0.3.0 Feb 4, 2025
0.2.14 Jan 14, 2025
0.2.11 Oct 24, 2024
0.2.9 Feb 4, 2024
0.1.16 Jul 21, 2023

#141 in Parser implementations

Download history 135/week @ 2024-10-23 15/week @ 2024-10-30 12/week @ 2024-11-06 13/week @ 2024-11-13 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

634 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