2title = "4m: Formatting Functions"
10Renders a dime `mol` as a cord.
23 ++ scot |=(mol/dime ~(rent co %$ mol))
31 > `@t`(scot %p ~pillyt)
37 > (scot %if .127.0.0.1)
39 > `@t`(scot %if .127.0.0.1)
43 > `@t`(scot %ta ~.asd_a)
53Renders a dime `mol` as a tape.
66 ++ scow |=(mol/dime ~(rend co %$ mol))
75 > (scow %if .127.0.0.1)
87Produces a `gate` that parses a `term` `txt` to an atom of the
88odor specified by `mod`.
92`mod` is a term, an atom of odor `@tas`.
94`txt` is a cord, an atom of odor `@ta`.
103 ++ slat |=(mod/@tas |=(txt/@ta (slaw mod txt)))
109 > `(unit @p)`((slat %p) '~pillyt')
111 > `(unit @ux)`((slat %ux) '0x12')
113 > `(unit @if)`((slat %if) '.127.0.0.1')
115 > `(unit @ta)`((slat %ta) '~.asd_a')
123Demand: parse cord with input odor
125Parses a cord `txt` to an atom of the odor specificed by `mod`.
126Crashes if it fails to parse.
130`mod` is a term, an atom of odor `@tas`.
132`txt` is a cord, an atom of odor `@ta`.
136The atom of a `(unit @)` from `++slaw`, or crash.
141 ++ slav |=([mod/@tas txt/@ta] (need (slaw mod txt)))
147 > `@p`(slav %p '~pillyt')
149 > `@p`(slav %p '~pillam')
151 > `@ux`(slav %ux '0x12')
153 > `@ux`(slav %ux '0b10')
155 > `@if`(slav %if '.127.0.0.1')
157 > `@if`(slav %if '.fe80.0.0.202')
159 > `@ta`(slav %ta '~.asd_a')
161 > `@ta`(slav %ta '~~asd-a')
168Parse cord to input odor
170Parses a cord `txt` to an atom of the odor specified by `mod`.
174`mod` is a term, an atom of odor `@tas`.
176`txt` is a cord, an atom of odor `@ta`.
187 |= {mod/@tas txt/@ta}
190 ?.(&(?=({$~ $$ @ @} con) =(p.p.u.con mod)) ~ [~ q.p.u.con])
196 > `(unit @p)`(slaw %p '~pillyt')
198 > `(unit @p)`(slaw %p '~pillam')
200 > `(unit @ux)`(slaw %ux '0x12')
202 > `(unit @ux)`(slaw %ux '0b10')
204 > `(unit @if)`(slaw %if '.127.0.0.1')
206 > `(unit @if)`(slaw %if '.fe80.0.0.202')
208 > `(unit @ta)`(slaw %ta '~.asd_a')
210 > `(unit @ta)`(slaw %ta '~~asd-a')
220Parses a cord `txt` to the unit of a `++coin`.
234 |= txt/@ta ^- (unit coin)
236 ?: (gth 0x7fff.ffff txt) :: XX petty cache
237 ~+ ((full nuck:so) [[1 1] (trip txt)])
238 ((full nuck:so) [[1 1] (trip txt)])
249 [~ [% p=[p=~.p q=32.819]]]
251 [~ [% p=[p=~.ux q=18]]]
252 > (slay '.127.0.0.1')
253 [~ [% p=[p=~.if q=2.130.706.433]]]
256 > (slay '._20_0w25_sam__')
259 p=~[[% p=[p=~.ud q=20]] [% p=[p=~.uw q=133]] [% p=[p=~.tas q=7.168.371]]]
267 ~ <syntax error at [1 2]>
280Renders the path `bon` as a `tank`, which is used for
294 ++ smyt :: pretty print path
296 :+ %rose [['/' ~] ['/' ~] ~]
297 (turn bon |=(a/@ [%leaf (trip a)]))
306 p=[p="/" q="/" r="/"]
310 [%leaf p="~2014.10.28..18.36.58..a280"]
315 p=[p="/" q="/" r="/"]
316 q=~[[%leaf p="as"] [%leaf p="les"] [%leaf p="top"]]
326Renders a path `pax` as cord.
339 ++ spat |=(pax/path (crip (spud pax))) :: path to cord
346 '~zod/try/~2014.10.28..18.40.20..4287'
348 '~zod/try/~2014.10.28..18.41.12..3bcd/bin'
359Renders a path `pax` as tape.
372 ++ spud |=(pax/path ~(ram re (smyt pax))) :: path to tape
379 "~zod/try/~2014.10.28..18.40.46..e951"
381 "~zod/try/~2014.10.28..18.41.05..16f2/bin"
392Parsing rule. Parses a cord `zep` to a static `++path`.
393Crashes if it fails to parse.
406 ++ stab :: parse cord to path
407 =+ fel=;~(pfix fas (more fas urs:ab))
408 |=(zep/@t `path`(rash zep fel))
414 > (stab '/as/lek/tor')
417 > `(pole ,@ta)`(stab '/as/lek/tor')
418 [~.as [~.lek [~.tor ~]]]
420 > (stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
421 ~zod/arvo/~2014.10.28..18.48.41..335f/zuse
423 > `(pole ,@ta)`(stab '~zod/arvo/~2014.10.28..18.48.41..335f/zuse')
424 [~.~zod [~.arvo [~.~2014.10.28..18.48.41..335f [~.zuse ~]]]]
426 > (stab '/a/~pillyt/pals/1')
429 > `(pole ,@ta)`(stab '/a/~pillyt/pals/1')
430 [~.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