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))
76 > (scow %if .127.0.0.1)
88Produces a `gate` that parses a `term` `txt` to an atom of the
89odor specified by `mod`.
93`mod` is a term, an atom of odor `@tas`.
95`txt` is a cord, an atom of odor `@ta`.
104 ++ slat |=(mod/@tas |=(txt/@ta (slaw mod txt)))
110 > `(unit @p)`((slat %p) '~pillyt')
112 > `(unit @ux)`((slat %ux) '0x12')
114 > `(unit @if)`((slat %if) '.127.0.0.1')
116 > `(unit @ta)`((slat %ta) '~.asd_a')
124Demand: parse cord with input odor
126Parses a cord `txt` to an atom of the odor specificed by `mod`.
127Crashes if it fails to parse.
131`mod` is a term, an atom of odor `@tas`.
133`txt` is a cord, an atom of odor `@ta`.
137The atom of a `(unit @)` from `++slaw`, or crash.
142 ++ slav |=([mod/@tas txt/@ta] (need (slaw mod txt)))
148 > `@p`(slav %p '~pillyt')
150 > `@p`(slav %p '~pillam')
152 > `@ux`(slav %ux '0x12')
154 > `@ux`(slav %ux '0b10')
156 > `@if`(slav %if '.127.0.0.1')
158 > `@if`(slav %if '.fe80.0.0.202')
160 > `@ta`(slav %ta '~.asd_a')
162 > `@ta`(slav %ta '~~asd-a')
169Parse cord to input odor
171Parses a cord `txt` to an atom of the odor specified by `mod`.
175`mod` is a term, an atom of odor `@tas`.
177`txt` is a cord, an atom of odor `@ta`.
188 |= {mod/@tas txt/@ta}
191 ?.(&(?=({$~ $$ @ @} con) =(p.p.u.con mod)) ~ [~ q.p.u.con])
197 > `(unit @p)`(slaw %p '~pillyt')
199 > `(unit @p)`(slaw %p '~pillam')
201 > `(unit @ux)`(slaw %ux '0x12')
203 > `(unit @ux)`(slaw %ux '0b10')
205 > `(unit @if)`(slaw %if '.127.0.0.1')
207 > `(unit @if)`(slaw %if '.fe80.0.0.202')
209 > `(unit @ta)`(slaw %ta '~.asd_a')
211 > `(unit @ta)`(slaw %ta '~~asd-a')
221Parses a cord `txt` to the unit of a `++coin`.
235 |= txt/@ta ^- (unit coin)
237 ?: (gth 0x7fff.ffff txt) :: XX petty cache
238 ~+ ((full nuck:so) [[1 1] (trip txt)])
239 ((full nuck:so) [[1 1] (trip txt)])
250 [~ [% p=[p=~.p q=32.819]]]
252 [~ [% p=[p=~.ux q=18]]]
253 > (slay '.127.0.0.1')
254 [~ [% p=[p=~.if q=2.130.706.433]]]
257 > (slay '._20_0w25_sam__')
260 p=~[[% p=[p=~.ud q=20]] [% p=[p=~.uw q=133]] [% p=[p=~.tas q=7.168.371]]]
268 ~ <syntax error at [1 2]>
281Renders the path `bon` as a `tank`, which is used for
295 ++ smyt :: pretty print path
297 :+ %rose [['/' ~] ['/' ~] ~]
298 (turn bon |=(a/@ [%leaf (trip a)]))
307 p=[p="/" q="/" r="/"]
311 [%leaf p="~2014.10.28..18.36.58..a280"]
316 p=[p="/" q="/" r="/"]
317 q=~[[%leaf p="as"] [%leaf p="les"] [%leaf p="top"]]
327Renders a path `pax` as cord.
340 ++ spat |=(pax/path (crip (spud pax))) :: path to cord
347 '~zod/try/~2014.10.28..18.40.20..4287'
349 '~zod/try/~2014.10.28..18.41.12..3bcd/bin'
360Renders a path `pax` as tape.
373 ++ spud |=(pax/path ~(ram re (smyt pax))) :: path to tape
380 "~zod/try/~2014.10.28..18.40.46..e951"
382 "~zod/try/~2014.10.28..18.41.05..16f2/bin"
393Parsing rule. Parses a cord `zep` to a static `++path`.
394Crashes if it fails to parse.
407 ++ stab :: parse cord to path
408 =+ fel=;~(pfix fas (more fas urs:ab))
409 |=(zep/@t `path`(rash zep fel))
415 > (stab '/as/lek/tor')
418 > `(pole ,@ta)`(stab '/as/lek/tor')
419 [~.as [~.lek [~.tor ~]]]
421 > (stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
422 ~zod/arvo/~2014.10.28..18.48.41..335f/zuse
424 > `(pole ,@ta)`(stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
425 [~.~zod [~.arvo [~.~2014.10.28..18.48.41..335f [~.zuse ~]]]]
427 > (stab '/a/~pillyt/pals/1')
430 > `(pole ,@ta)`(stab '/a/~pillyt/pals/1')
431 [~.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