@@ -2,7 +2,7 @@
3Pretty-printing engine
3Pretty-printing engine
5−Pretty-printing engine that accepts a [`++tank`](/doc/hoon/library/1#++tank) [sample]() and contains arms that perform computation on it.
5+Pretty-printing engine that accepts a `++tank` sample and contains arms that perform computation on it.
@@ -13,24 +13,24 @@ Produces
16− |_ tac=tank
16+ |_ tac/tank
21− /~zod/try=> ~(. re leaf/"ham")
21+ /~zod/try=> ~(. re leaf+"ham")
22− <2.ghl [[%leaf ""] <414.gly 100.xkc 1.ypj %164>]>
22+ <2.gdc {tac/{$leaf ""} <402.arm 110.jyx 1.ztu $151>}>
24### `++ram`
24### `++ram`
26Flatten to tape
26Flatten to tape
28−Flatten [`++tank`]() out into a [`++tape`]().
28+Flatten `++tank` out into a `++tape`.
33−`tac` is a `++tank`, taken from [sample]() of `++re` [core]().
33+`tac` is a `++tank`, taken from sample of `++re` core.
@@ -43,9 +43,9 @@ Source
46− %leaf p.tac
46+ $leaf p.tac
47− %palm ram(tac [%rose [p.p.tac (weld q.p.tac r.p.tac) s.p.tac] q.tac])
47+ $palm ram(tac [%rose [p.p.tac (weld q.p.tac r.p.tac) s.p.tac] q.tac])
51 |- ^- tape
51 |- ^- tape
@@ -59,9 +59,9 @@ Source
62− /~zod/try=> ~(ram re leaf/"foo")
62+ /~zod/try=> ~(ram re leaf+"foo")
64− /~zod/try=> ~(ram re rose/["." "(" ")"]^~[leaf/"bar" leaf/"baz" leaf/"bam"])
64+ /~zod/try=> ~(ram re rose+["." "(" ")"]^~[leaf+"bar" leaf+"baz" leaf+"bam"])
65 "(bar.baz.bam)"
65 "(bar.baz.bam)"
67### `++win`
67### `++win`
@@ -73,25 +73,25 @@ Render at indent level `tab` and width `edg`.
76−`tac` is a `++tank`, taken from [sample]() of `++re` [core]().
76+`tac` is a `++tank`, taken from sample of `++re` core.
78`tab` and `edg` are atoms.
78`tab` and `edg` are atoms.
83−A [`++wall`]() ([`++list`]() of [`++tapes`]()).
83+A `++wall` (`++list` of `++tapes`).
89− |= [tab=@ edg=@]
89+ |= {tab/@ edg/@}
90 =+ lug=`wall`~
90 =+ lug=`wall`~
91 |^ |- ^- wall
91 |^ |- ^- wall
93− %leaf (rig p.tac)
93+ $leaf (rig p.tac)
@@ -111,30 +111,17 @@ Source
112 (wig(lug qyr) q.p.tac)
112 (wig(lug qyr) q.p.tac)
120− ?:(=(%$ r.p.tac) lug (rig r.p.tac))
121− ^$(tac i.q.tac, lug $(q.tac t.q.tac), tab din)
124− (wig(lug gyl) q.p.tac)
131− /~zod/try=> (~(win re leaf/"samoltekon-lapdok") 0 20)
118+ /~zod/try=> (~(win re leaf+"samoltekon-lapdok") 0 20)
132 <<"samoltekon-lapdok">>
119 <<"samoltekon-lapdok">>
133− /~zod/try=> (~(win re leaf/"samoltekon-lapdok") 0 10)
120+ /~zod/try=> (~(win re leaf+"samoltekon-lapdok") 0 10)
134 <<"\/samolt\/" " ekon-l" " apdok" "\/ \/">>
121 <<"\/samolt\/" " ekon-l" " apdok" "\/ \/">>
135− /~zod/try=> (~(win re rose/["--" "[" "]"]^~[leaf/"1423" leaf/"2316"]) 0 20)
122+ /~zod/try=> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 20)
136 <<"[1423--2316]">>
123 <<"[1423--2316]">>
137− /~zod/try=> (~(win re rose/["--" "[" "]"]^~[leaf/"1423" leaf/"2316"]) 0 10)
124+ /~zod/try=> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 10)
138 <<"[ 1423" " 2316" "]">>
125 <<"[ 1423" " 2316" "]">>
140### `++din`
127### `++din`
@@ -185,28 +172,28 @@ Examples
186Wrap in `\/`
173Wrap in `\/`
188−Wrap [`++tape`]() in `\/` if it doesn't fit at current indentation. Internal to
175+Wrap `++tape` in `\/` if it doesn't fit at current indentation. Internal to
189−[`++win`]()
176+`++win`
194−`tac` is a `++tank`, taken from [sample]() of `++re` [core]().
181+`tac` is a `++tank`, taken from sample of `++re` core.
196`hom` is a `++tape`.
183`hom` is a `++tape`.
201−A [`++wall`]() (list of `++tape`s).
188+A `++wall` (list of `++tape`s).
207− |= hom=tape
194+ |= hom/tape
209− ?: (lte (lent hom) (sub edg tab))
196+ ?: & ::(lte (lent hom) (sub edg tab))
210 [(runt [tab ' '] hom) lug]
197 [(runt [tab ' '] hom) lug]
211 => .(tab (add tab 2), edg (sub edg 2))
198 => .(tab (add tab 2), edg (sub edg 2))
212 =+ mut=(trim (sub edg tab) hom)
199 =+ mut=(trim (sub edg tab) hom)
@@ -229,12 +216,12 @@ Examples
230`++win` render tape
217`++win` render tape
232−Render [`++tape`](). Internal to [`++win`]().
219+Render `++tape`. Internal to `++win`.
237−`tac` is a `++tank`, taken from [sample]() of `++re` [core]().
224+`tac` is a `++tank`, taken from sample of `++re` core.
239`hom` is a `++tape`.
226`hom` is a `++tape`.
@@ -242,7 +229,7 @@ Produces
245− |= hom=tape
232+ |= hom/tape
248 (rig hom)
235 (rig hom)
@@ -259,4 +246,5 @@ Produces