6Pretty-printing engine that accepts a `++tank` sample and contains arms that perform computation on it.
23 <2.gdc {tac/{$leaf ""} <402.arm 110.jyx 1.ztu $151>}>
29Flatten `++tank` out into a `++tape`.
34`tac` is a `++tank`, taken from sample of `++re` core.
48 $palm ram(tac [%rose [p.p.tac (weld q.p.tac r.p.tac) s.p.tac] q.tac])
55 =+ voz=$(q.tac t.q.tac)
56 (weld ram(tac i.q.tac) ?~(t.q.tac voz (weld p.p.tac voz)))
63 /> ~(ram re leaf+"foo")
65 /> ~(ram re rose+["." "(" ")"]^~[leaf+"bar" leaf+"baz" leaf+"bam"])
72Render at indent level `tab` and width `edg`.
77`tac` is a `++tank`, taken from sample of `++re` core.
79`tab` and `edg` are atoms.
84A `++wall` (`++list` of `++tapes`).
101 (rig(tab (add 2 tab), lug $(tac i.q.tac)) q.p.tac)
102 => .(q.tac `(list tank)`q.tac)
103 =+ lyn=(mul 2 (lent q.tac))
110 tab (add tab (sub lyn 2))
111 lug $(q.tac t.q.tac, lyn (sub lyn 2))
113 (wig(lug qyr) q.p.tac)
119 /> (~(win re leaf+"samoltekon-lapdok") 0 20)
120 <<"samoltekon-lapdok">>
121 /> (~(win re leaf+"samoltekon-lapdok") 0 10)
122 <<"\/samolt\/" " ekon-l" " apdok" "\/ \/">>
123 /> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 20)
125 /> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 10)
126 <<"[ 1423" " 2316" "]">>
141 ++ din (mod (add 2 tab) (mul 2 (div edg 3)))
144----------------------------------------------------------------------
150Determine whether `tac` fits on one line. Internal to `++win`
161++ fit (lte (lent ram) (sub edg tab))
170----------------------------------------------------------------------
176Wrap `++tape` in `\/` if it doesn't fit at current indentation. Internal to
182`tac` is a `++tank`, taken from sample of `++re` core.
189A `++wall` (list of `++tape`s).
197 ?: & ::(lte (lent hom) (sub edg tab))
198 [(runt [tab ' '] hom) lug]
199 => .(tab (add tab 2), edg (sub edg 2))
200 =+ mut=(trim (sub edg tab) hom)
201 :- (runt [(sub tab 2) ' '] ['\\' '/' (weld p.mut `_hom`['\\' '/' ~])])
207 ['\\' '/' (runt [(sub edg tab) ' '] ['\\' '/' ~])]
209 => .(mut (trim (sub edg tab) hom))
210 [(runt [tab ' '] p.mut) $(hom q.mut)]
220Render `++tape`. Internal to `++win`.
225`tac` is a `++tank`, taken from sample of `++re` core.
238 =+ wug=:(add 1 tab lin)
242 ?|(=(0 wug) ?&(=(' ' i.mir) $(mir t.mir, wug (dec wug))))
243 (rig hom) :: ^ XX regular form?
244 [(runt [tab ' '] (weld hom `tape`[' ' (slag wug i.lug)])) t.lug]
254 ++ show :: XX deprecated, use span
258 [%leaf (mesc (trip vem))]
261 [%leaf '\'' (weld (mesc (tape +.vem)) `tape`['\'' ~])]
263 {s/$a c/@} [%leaf (mesc (trip c.vem))]
264 {s/$b c/*} (shop c.vem |=(a/@ ~(rub at a)))
267 [['.' ~] ['-' ~] ~ ~]
268 [[%leaf (mesc (trip p.s.vem))] $(vem c.vem) ~]
270 {s/$d c/*} (shop c.vem |=(a/@ ~(rud at a)))
271 {s/$k c/*} (tank c.vem)
275 =+ yol=((list @ta) c.vem)
276 (turn yol |=(a/@ta [%leaf (trip a)]))
278 {s/$l c/*} (shol c.vem)
282 :- [%m '%h:<[%d %d].[%d %d]>']
283 [-.c.vem +<-.c.vem +<+.c.vem +>-.c.vem +>+.c.vem ~]
286 {s/$p c/*} (shop c.vem |=(a/@ ~(rup at a)))
287 {s/$q c/*} (shop c.vem |=(a/@ ~(r at a)))
288 {s/$r c/*} $(vem [[%r ' ' '{' '}'] c.vem])
289 {s/$t c/*} (shop c.vem |=(a/@ ~(rt at a)))
290 {s/$v c/*} (shop c.vem |=(a/@ ~(ruv at a)))
291 {s/$x c/*} (shop c.vem |=(a/@ ~(rux at a)))
292 {s/{$m p/@} c/*} (shep p.s.vem c.vem)
294 $(vem [[%r ' ' (cut 3 [0 1] p.s.vem) (cut 3 [1 1] p.s.vem)] c.vem])
296 {s/{$r p/@ q/@ r/@} c/*}
298 :* p=(mesc (trip p.s.vem))
299 q=(mesc (trip q.s.vem))
300 r=(mesc (trip r.s.vem))
305 [^$(vem -.c.vem) $(c.vem +.c.vem)]
307 {s/$z c/*} $(vem [[%r %$ %$ %$] c.vem])
324 =+ c=(cut 3 [i 1] fom)
326 (weld (mesc [c ~]) $(i +(i)))
327 =+ d=(cut 3 [+(i) 1] fom)
329 ['\\' '#' $(i (add 2 i))]
330 (weld ~(ram re (show d -.gar)) $(i (add 2 i), gar +.gar))
338 |= {aug/* vel/$-(a/@ tape)}
343 [[' ' ~] ['[' ~] [']' ~]]
348 [^$(aug -.aug) $(aug +.aug)]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list