2title = "4m: Formatting Functions"
11Renders a dime `mol` as a cord.
24 ++ scot |=(mol/dime ~(rent co %$ mol))
32 > `@t`(scot %p ~pillyt)
38 > (scot %if .127.0.0.1)
40 > `@t`(scot %if .127.0.0.1)
44 > `@t`(scot %ta ~.asd_a)
54Renders a dime `mol` as a tape.
67 ++ scow |=(mol/dime ~(rend co %$ mol))
77 > (scow %if .127.0.0.1)
89Produces a `gate` that parses a `term` `txt` to an atom of the
90aura specified by `mod`.
94`mod` is a term, an atom of aura `@tas`.
96`txt` is a cord, an atom of aura `@ta`.
105 ++ slat |=(mod/@tas |=(txt/@ta (slaw mod txt)))
111 > `(unit @p)`((slat %p) '~pillyt')
113 > `(unit @ux)`((slat %ux) '0x12')
115 > `(unit @if)`((slat %if) '.127.0.0.1')
117 > `(unit @ta)`((slat %ta) '~.asd_a')
125Demand: parse cord with input aura
127Parses a cord `txt` to an atom of the aura specificed by `mod`.
128Crashes if it fails to parse.
132`mod` is a term, an atom of aura `@tas`.
134`txt` is a cord, an atom of aura `@ta`.
138The atom of a `(unit @)` from `++slaw`, or crash.
143 ++ slav |=([mod/@tas txt/@ta] (need (slaw mod txt)))
149 > `@p`(slav %p '~pillyt')
151 > `@p`(slav %p '~pillam')
153 > `@ux`(slav %ux '0x12')
155 > `@ux`(slav %ux '0b10')
157 > `@if`(slav %if '.127.0.0.1')
159 > `@if`(slav %if '.fe80.0.0.202')
161 > `@ta`(slav %ta '~.asd_a')
163 > `@ta`(slav %ta '~~asd-a')
171Parse cord to input aura
173Parses a cord `txt` to an atom of the aura specified by `mod`.
177`mod` is a term, an atom of aura `@tas`.
179`txt` is a cord, an atom of aura `@ta`.
190 |= {mod/@tas txt/@ta}
193 ?.(&(?=({$~ $$ @ @} con) =(p.p.u.con mod)) ~ [~ q.p.u.con])
199 > `(unit @p)`(slaw %p '~pillyt')
201 > `(unit @p)`(slaw %p '~pillam')
203 > `(unit @ux)`(slaw %ux '0x12')
205 > `(unit @ux)`(slaw %ux '0b10')
207 > `(unit @if)`(slaw %if '.127.0.0.1')
209 > `(unit @if)`(slaw %if '.fe80.0.0.202')
211 > `(unit @ta)`(slaw %ta '~.asd_a')
213 > `(unit @ta)`(slaw %ta '~~asd-a')
223Parses a cord `txt` to the unit of a `++coin`.
237 |= txt/@ta ^- (unit coin)
239 ?: (gth 0x7fff.ffff txt) :: XX petty cache
240 ~+ ((full nuck:so) [[1 1] (trip txt)])
241 ((full nuck:so) [[1 1] (trip txt)])
252 [~ [% p=[p=~.p q=32.819]]]
254 [~ [% p=[p=~.ux q=18]]]
255 > (slay '.127.0.0.1')
256 [~ [% p=[p=~.if q=2.130.706.433]]]
259 > (slay '._20_0w25_sam__')
262 p=~[[% p=[p=~.ud q=20]] [% p=[p=~.uw q=133]] [% p=[p=~.tas q=7.168.371]]]
270 ~ <syntax error at [1 2]>
283Renders the path `bon` as a `tank`, which is used for
297 ++ smyt :: pretty print path
299 :+ %rose [['/' ~] ['/' ~] ~]
300 (turn bon |=(a/@ [%leaf (trip a)]))
309 p=[p="/" q="/" r="/"]
313 [%leaf p="~2014.10.28..18.36.58..a280"]
318 p=[p="/" q="/" r="/"]
319 q=~[[%leaf p="as"] [%leaf p="les"] [%leaf p="top"]]
329Renders a path `pax` as cord.
342 ++ spat |=(pax/path (crip (spud pax))) :: path to cord
349 '~zod/try/~2014.10.28..18.40.20..4287'
351 '~zod/try/~2014.10.28..18.41.12..3bcd/bin'
362Renders a path `pax` as tape.
375 ++ spud |=(pax/path ~(ram re (smyt pax))) :: path to tape
382 "~zod/try/~2014.10.28..18.40.46..e951"
384 "~zod/try/~2014.10.28..18.41.05..16f2/bin"
395Parsing rule. Parses a cord `zep` to a static `++path`.
396Crashes if it fails to parse.
409 ++ stab :: parse cord to path
410 =+ fel=;~(pfix fas (more fas urs:ab))
411 |=(zep/@t `path`(rash zep fel))
417 > (stab '/as/lek/tor')
420 > `(pole ,@ta)`(stab '/as/lek/tor')
421 [~.as [~.lek [~.tor ~]]]
423 > (stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
424 ~zod/arvo/~2014.10.28..18.48.41..335f/zuse
426 > `(pole ,@ta)`(stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
427 [~.~zod [~.arvo [~.~2014.10.28..18.48.41..335f [~.zuse ~]]]]
429 > (stab '/a/~pillyt/pals/1')
432 > `(pole ,@ta)`(stab '/a/~pillyt/pals/1')
433 [~.a [~.~pillyt [~.pals [~.1 ~]]]]
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