2title = "4m: Formatting Functions"
11Renders a dime `mol` as a cord.
26 |=(mol=dime ~(rent co %$ mol))
35> `@t`(scot %p ~pillyt)
41> `@t`(scot %if .127.0.0.1)
44> `@t`(scot %ta ~.asd_a)
54Renders a dime `mol` as a tape.
69 |=(mol=dime ~(rend co %$ mol))
81> (scow %if .127.0.0.1)
94Produces a `gate` that parses a `knot` `txt` to a `unit` containing the atom of
95the aura specified by `mod`. The `unit` will be null if parsing failed.
110++ slat |=(mod=@tas |=(txt=@ta (slaw mod txt)))
116> `(unit @p)`((slat %p) '~pillyt')
119> `(unit @ux)`((slat %ux) '0x12')
122> `(unit @if)`((slat %if) '.127.0.0.1')
125> `(unit @ta)`((slat %ta) '~.asd_a')
133Demand: parse cord with input aura
135Parses a cord `txt` to an atom of the aura specificed by `mod`.
136Crashes if it fails to parse.
151++ slav |=([mod=@tas txt=@ta] (need (slaw mod txt)))
157> `@p`(slav %p '~pillyt')
160> `@p`(slav %p '~pillam')
163> `@ux`(slav %ux '0x12')
166> `@ux`(slav %ux '0b10')
169> `@if`(slav %if '.127.0.0.1')
172> `@if`(slav %if '.fe80.0.0.202')
175> `@ta`(slav %ta '~.asd_a')
178> `@ta`(slav %ta '~~asd-a')
186Parse cord to input aura
188Parses a cord `txt` to a `unit` containing the atom of the aura specified by
189`mod`. The `unit` is null if parsing failed.
206 |= [mod=@tas txt=@ta]
209 :: slow fallback case to the full slay
212 ?.(&(?=([~ %$ @ @] con) =(p.p.u.con mod)) ~ [~ q.p.u.con])
215 (rush txt ;~(pfix sig (cook year when:so)))
218 (rush txt ;~(pfix sig fed:ag))
224 (rush txt ;~(pfix (jest '0x') hex:ag))
227 (rush txt ;~(pfix (jest '0v') viz:ag))
230 (rush txt ;~(pfix ;~(plug sig dot) urs:ab))
240> `(unit @p)`(slaw %p '~pillyt')
243> `(unit @p)`(slaw %p '~pillam')
246> `(unit @ux)`(slaw %ux '0x12')
249> `(unit @ux)`(slaw %ux '0b10')
252> `(unit @if)`(slaw %if '.127.0.0.1')
255> `(unit @if)`(slaw %if '.fe80.0.0.202')
258> `(unit @ta)`(slaw %ta '~.asd_a')
261> `(unit @ta)`(slaw %ta '~~asd-a')
271Parses a cord `txt` to the unit of a `coin`.
285 |= txt=@ta ^- (unit coin)
287 ?: (gth 0x7fff.ffff txt) :: XX petty cache
288 ~+ ((full nuck:so) [[1 1] (trip txt)])
289 ((full nuck:so) [[1 1] (trip txt)])
299[~ [%$ p=[p=~.p q=13.184]]]
302[~ [%$ p=[p=~.ux q=18]]]
305[~ [%$ p=[p=~.if q=2.130.706.433]]]
317Renders the path `bon` as a `tank`, which is used for
333 :+ %rose [['/' ~] ['/' ~] ~]
334 (turn bon |=(a=@ [%leaf (trip a)]))
347 [%leaf p="~2022.1.6..14.22.14..40bf"]
354 q=~[[%leaf p="as"] [%leaf p="les"] [%leaf p="top"]]
364Renders a path `pax` as cord.
377++ spat |=(pax=path (crip (spud pax)))
384'/~zod/base/~2022.1.6..14.23.31..e367'
387'/~zod/base/~2022.1.6..14.23.43..829e/lib'
399Renders a path `pax` as tape.
412++ spud |=(pax=path ~(ram re (smyt pax)))
419"/~zod/base/~2022.1.6..14.24.35..cddf"
422"/~zod/base/~2022.1.6..14.24.43..3efb/lib"
434Parses a cord `zep` to a static `path`.
435Crashes if it fails to parse.
448++ stab |=(zep=@t `path`(rash zep stap))
454> (stab '/as/lek/tor')
464Parsing `rule`. Parses a `path`, used internally by `++stab`.
476 ;~(pfix fas (most fas urs:ab))
482> (scan "/foo/bar/baz" stap)
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