See: Oleg Kiselyov, Simon Peyton-Jones, and Amr Sabry Lazy v. Yield: Incremental, Linear Pretty-printing
See: Oleg Kiselyov, Simon Peyton-Jones, and Amr Sabry Lazy v. Yield: Incremental, Linear Pretty-printing
(annotate-begins {:keys [width] :as options})
Given printing options, returns a transducer which annotate the right-side of groups on their :begin nodes. This includes the pruning algorithm which will annotate some :begin nodes as being :too-far to the right without calculating their exact sizes.
Given printing options, returns a transducer which annotate the right-side of groups on their :begin nodes. This includes the pruning algorithm which will annotate some :begin nodes as being :too-far to the right without calculating their exact sizes.
(annotate-rights rf)
A transducer which annotates the right-side of nodes assuming a hypothetical single-line formatting of the document. Groups and indentation directives are temporarily assumed to be zero-width. These values are used by subsequent passes to produce the final layout.
A transducer which annotates the right-side of nodes assuming a hypothetical single-line formatting of the document. Groups and indentation directives are temporarily assumed to be zero-width. These values are used by subsequent passes to produce the final layout.
(format-nodes {:keys [width] :as options})
Given printing options, returns a transducer which produces the fully laid-out strings.
Given printing options, returns a transducer which produces the fully laid-out strings.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close