Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pretty-search

Explorations in treating pretty-printing as a search problem

Pretty-printers have a bunch of heuristics around whitespace and width. These are usually burned into the library, perhaps parameterised by ribbon width or a maximum document length.

What happens when we instead encode all possible choices in our printer, then apply heuristics to guide the search?

Current answer: ┐(‘~` )┌

May eventually circle back into bidirectional parsing/printing.

About

Explorations in treating pretty-printing as a search problem

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages