Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

russellw/racket-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tool to format Racket code.

Features:

  • Stand-alone command-line program.

  • Decides line breaks as well as indentation.

  • Sorts definitions where this will not change the meaning of the code.

  • Optimized for simplicity and clarity; easy to extend and customize.

If no arguments are specified, it formats the code from standard input and writes the result to standard output.

If files are given, it formats the files. If -i is specified together with files, the files are edited in place. Otherwise, the result is written to standard output.

Usage: racket-format [options] files

-h  Show help
-V  Show version
-i  Inplace edit

To build:

raco exe racket-format.rkt

About

Format Racket source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages