11Pretty-printing engine that accepts a `++tank` sample and contains arms that perform computation on it.
28 <2.gdc {tac/{$leaf ""} <402.arm 110.jyx 1.ztu $151>}>
34Flatten `++tank` out into a `++tape`.
39`tac` is a `++tank`, taken from sample of `++re` core.
53 $palm ram(tac [%rose [p.p.tac (weld q.p.tac r.p.tac) s.p.tac] q.tac])
60 =+ voz=$(q.tac t.q.tac)
61 (weld ram(tac i.q.tac) ?~(t.q.tac voz (weld p.p.tac voz)))
68 /> ~(ram re leaf+"foo")
70 /> ~(ram re rose+["." "(" ")"]^~[leaf+"bar" leaf+"baz" leaf+"bam"])
77Render at indent level `tab` and width `edg`.
82`tac` is a `++tank`, taken from sample of `++re` core.
84`tab` and `edg` are atoms.
89A `++wall` (`++list` of `++tapes`).
106 (rig(tab (add 2 tab), lug $(tac i.q.tac)) q.p.tac)
107 => .(q.tac `(list tank)`q.tac)
108 =+ lyn=(mul 2 (lent q.tac))
115 tab (add tab (sub lyn 2))
116 lug $(q.tac t.q.tac, lyn (sub lyn 2))
118 (wig(lug qyr) q.p.tac)
124 /> (~(win re leaf+"samoltekon-lapdok") 0 20)
125 <<"samoltekon-lapdok">>
126 /> (~(win re leaf+"samoltekon-lapdok") 0 10)
127 <<"\/samolt\/" " ekon-l" " apdok" "\/ \/">>
128 /> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 20)
130 /> (~(win re rose+["--" "[" "]"]^~[leaf+"1423" leaf+"2316"]) 0 10)
131 <<"[ 1423" " 2316" "]">>
146 ++ din (mod (add 2 tab) (mul 2 (div edg 3)))
149----------------------------------------------------------------------
155Determine whether `tac` fits on one line. Internal to `++win`
166++ fit (lte (lent ram) (sub edg tab))
175----------------------------------------------------------------------
181Wrap `++tape` in `\/` if it doesn't fit at current indentation. Internal to
187`tac` is a `++tank`, taken from sample of `++re` core.
194A `++wall` (list of `++tape`s).
202 ?: & ::(lte (lent hom) (sub edg tab))
203 [(runt [tab ' '] hom) lug]
204 => .(tab (add tab 2), edg (sub edg 2))
205 =+ mut=(trim (sub edg tab) hom)
206 :- (runt [(sub tab 2) ' '] ['\\' '/' (weld p.mut `_hom`['\\' '/' ~])])
212 ['\\' '/' (runt [(sub edg tab) ' '] ['\\' '/' ~])]
214 => .(mut (trim (sub edg tab) hom))
215 [(runt [tab ' '] p.mut) $(hom q.mut)]
225Render `++tape`. Internal to `++win`.
230`tac` is a `++tank`, taken from sample of `++re` core.
243 =+ wug=:(add 1 tab lin)
247 ?|(=(0 wug) ?&(=(' ' i.mir) $(mir t.mir, wug (dec wug))))
248 (rig hom) :: ^ XX regular form?
249 [(runt [tab ' '] (weld hom `tape`[' ' (slag wug i.lug)])) t.lug]
259 ++ show :: XX deprecated, use span
263 [%leaf (mesc (trip vem))]
266 [%leaf '\'' (weld (mesc (tape +.vem)) `tape`['\'' ~])]
268 {s/$a c/@} [%leaf (mesc (trip c.vem))]
269 {s/$b c/*} (shop c.vem |=(a/@ ~(rub at a)))
272 [['.' ~] ['-' ~] ~ ~]
273 [[%leaf (mesc (trip p.s.vem))] $(vem c.vem) ~]
275 {s/$d c/*} (shop c.vem |=(a/@ ~(rud at a)))
276 {s/$k c/*} (tank c.vem)
280 =+ yol=((list @ta) c.vem)
281 (turn yol |=(a/@ta [%leaf (trip a)]))
283 {s/$l c/*} (shol c.vem)
287 :- [%m '%h:<[%d %d].[%d %d]>']
288 [-.c.vem +<-.c.vem +<+.c.vem +>-.c.vem +>+.c.vem ~]
291 {s/$p c/*} (shop c.vem |=(a/@ ~(rup at a)))
292 {s/$q c/*} (shop c.vem |=(a/@ ~(r at a)))
293 {s/$r c/*} $(vem [[%r ' ' '{' '}'] c.vem])
294 {s/$t c/*} (shop c.vem |=(a/@ ~(rt at a)))
295 {s/$v c/*} (shop c.vem |=(a/@ ~(ruv at a)))
296 {s/$x c/*} (shop c.vem |=(a/@ ~(rux at a)))
297 {s/{$m p/@} c/*} (shep p.s.vem c.vem)
299 $(vem [[%r ' ' (cut 3 [0 1] p.s.vem) (cut 3 [1 1] p.s.vem)] c.vem])
301 {s/{$r p/@ q/@ r/@} c/*}
303 :* p=(mesc (trip p.s.vem))
304 q=(mesc (trip q.s.vem))
305 r=(mesc (trip r.s.vem))
310 [^$(vem -.c.vem) $(c.vem +.c.vem)]
312 {s/$z c/*} $(vem [[%r %$ %$ %$] c.vem])
329 =+ c=(cut 3 [i 1] fom)
331 (weld (mesc [c ~]) $(i +(i)))
332 =+ d=(cut 3 [+(i) 1] fom)
334 ['\\' '#' $(i (add 2 i))]
335 (weld ~(ram re (show d -.gar)) $(i (add 2 i), gar +.gar))
343 |= {aug/* vel/$-(a/@ tape)}
348 [[' ' ~] ['[' ~] [']' ~]]
353 [^$(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