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

nightly app schemat

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

42 releases

new 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

#142 in Parser implementations

Download history 114/week @ 2024-10-19 32/week @ 2024-10-26 13/week @ 2024-11-02 8/week @ 2024-11-09 17/week @ 2024-11-16 7/week @ 2024-11-23 4/week @ 2024-11-30 41/week @ 2024-12-07 17/week @ 2024-12-14 5/week @ 2024-12-21 30/week @ 2024-12-28 14/week @ 2025-01-04 282/week @ 2025-01-11 81/week @ 2025-01-18 17/week @ 2025-01-25 211/week @ 2025-02-01

596 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