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

nightly app schemat

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

40 releases

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

#193 in Parser implementations

Download history 26/week @ 2024-09-23 21/week @ 2024-09-30 29/week @ 2024-10-07 9/week @ 2024-10-14 126/week @ 2024-10-21 19/week @ 2024-10-28 15/week @ 2024-11-04 8/week @ 2024-11-11 18/week @ 2024-11-18 4/week @ 2024-11-25 4/week @ 2024-12-02 50/week @ 2024-12-09 8/week @ 2024-12-16 34/week @ 2024-12-23 10/week @ 2025-01-06

60 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
~162K SLoC