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

nightly app schemat

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

35 releases

0.2.9 Feb 4, 2024
0.2.8 Jan 30, 2024
0.1.25 Jan 17, 2024
0.1.21 Oct 3, 2023
0.1.16 Jul 21, 2023

#275 in Parser implementations

Download history 15/week @ 2023-12-31 51/week @ 2024-01-14 24/week @ 2024-01-21 19/week @ 2024-01-28 26/week @ 2024-02-18 58/week @ 2024-02-25 48/week @ 2024-03-03 421/week @ 2024-03-10 32/week @ 2024-03-17 2/week @ 2024-03-24 32/week @ 2024-03-31 8/week @ 2024-04-07 9/week @ 2024-04-14

54 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–16MB
~183K SLoC