Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Algorithms Sedgewick Wayne | 1,967 | 2 months ago | 3 | mit | Java | |||||
Solutions to all the exercises of the Algorithms book by Robert Sedgewick and Kevin Wayne | ||||||||||
Mir Algorithm | 168 | 10 | 29 | 19 days ago | 610 | February 07, 2023 | 27 | other | D | |
Dlang Core Library | ||||||||||
Floaxie | 28 | 6 months ago | apache-2.0 | C++ | ||||||
Floating point printing and parsing library based on Grisu2 and Krosh algorithms | ||||||||||
Strip Packing | 14 | 4 years ago | 1 | mit | Python | |||||
Algorithm for the strip packing problem with guillotine cuts constraint | ||||||||||
Prettyprint | 8 | 2 months ago | 2 | bsd-2-clause | Ruby | |||||
This class implements a pretty printing algorithm. | ||||||||||
Gopprint | 5 | 5 years ago | mit | Go | ||||||
Implementation of Kiselyov et al's pretty printing algorithm in Go. | ||||||||||
Algorithms | 4 | a year ago | 3 | mit | C++ | |||||
A collection of templates/algorithms for competitive coding. | ||||||||||
Packager | 3 | 7 years ago | JavaScript | |||||||
Binary tree bin packing algorithm for packing pictures to sheet for printing | ||||||||||
Diff Java | 2 | 7 years ago | gpl-3.0 | Java | ||||||
Clone and improvements | ||||||||||
Soren Cslab Scripts | 2 | 7 years ago | mit | Shell | ||||||
Scripts for fixing firefox locks, printing, timing algorithms, and checking your quota. |
An implementation of Kiselyov et al's pretty printing algorithm in Go.
Pretty printing occurs in two global phases. Rather than try to print
some random tree directly, which could get quite ugly quite quickly,
we build a "pretty printer document" out of some very simple
primitives. These primitives (and our algorithm) are due to
D.C. Oppen originally and later Kiselyov et al. Oppen's original
formulation had Text
, LineBreak
, Concat
, and Group
. I
generalized LineBreak
to cond_t
which became our cond_t
because
we need to do more sophisticated breaks, and I added nest_t
for
controllable indentation.