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

nightly app schemat

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

37 releases

0.2.11 Oct 24, 2024
0.2.9 Feb 4, 2024
0.1.21 Oct 3, 2023
0.1.16 Jul 21, 2023

#190 in Parser implementations

Download history 3/week @ 2024-07-22 8/week @ 2024-07-29 16/week @ 2024-08-05 4/week @ 2024-08-12 2/week @ 2024-08-26 157/week @ 2024-09-02 19/week @ 2024-09-09 30/week @ 2024-09-16 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

170 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
~169K SLoC