on master help sign in
done with 2
commitadf3d954250c6e6981608d52718c172e86b8160d authorHenry Ault <henry@tlon.io> dateThu 17 Mar 2016, 13:24 (11 years ago) parent00b73d8
9 files changed+34−59
docs/system/hoon/library/src/2q/mold/char.md+3−3 docs/system/hoon/library/src/2q/mold/cord.md+4−4 docs/system/hoon/library/src/2q/mold/date.md+4−3 docs/system/hoon/library/src/2q/mold/tank.md+8−8 docs/system/hoon/library/src/2q/mold/tape.md+1−1 docs/system/hoon/library/src/2q/mold/tarp.md+4−4 docs/system/hoon/library/src/2q/mold/term.md+3−3 docs/system/hoon/library/src/2q/mold/wain.md+2−22 docs/system/hoon/library/src/2q/mold/wall.md+5−11
docs/system/hoon/library/src/2q/mold/char.md+3−3
@@ -2,14 +2,14 @@
22
33Char
44
5−A single character. [odor]() [`@tD`]() designates a single unicode byte. All
6−parsers consume [`++tape`]()s, which are lists of `++char`.
5+A single character. odor `@tD` designates a single unicode byte. All
6+parsers consume `++tape`s, which are lists of `++char`.
77
88
99Source
1010------
1111
12− ++ char ,@tD :: UTF-8 byte
12+ ++ char @tD :: UTF-8 byte
1313
1414Examples
1515--------
docs/system/hoon/library/src/2q/mold/cord.md+4−4
@@ -2,19 +2,19 @@
22
33UTF-8 text
44
5−One of Hoon's two string types (the other being [`++tape`]()). A cord is an
6−atom of UTF-8 text. [`++trip`]() and [`++crip`]() convert between cord and
5+One of Hoon's two string types (the other being `++tape`). A cord is an
6+atom of UTF-8 text. `++trip` and `++crip` convert between cord and
77`++tape`.
88
99Source
1010------
1111
12− ++ cord ,@t :: text atom (UTF-8)
12+ ++ cord @t :: text atom (UTF-8)
1313
1414Examples
1515--------
1616
17−Odor [`@t`]() designates a Unicode atom, little-endian: the first character
17+Odor `@t` designates a Unicode atom, little-endian: the first character
1818in the text is the low byte.
1919
2020 ~zod/try=> `@ux`'foobar'
docs/system/hoon/library/src/2q/mold/date.md+4−3
@@ -3,17 +3,18 @@
33Point in time
44
55A boolean designating AD or BC, a year atom, a month
6−atom, and a [`++tarp`](), which is a day atom and a time.
6+atom, and a `++tarp`, which is a day atom and a time.
77
88Source
99------
1010
11− ++ date ,[[a=? y=@ud] m=@ud t=tarp] :: parsed date
11+ ++ date {{a/? y/@ud} m/@ud t/tarp} :: parsed date
12+
1213
1314Examples
1415--------
1516
16−See also: [`++year`](), [`++yore`]() [`++stud`](), [`++dust`]()
17+See also: `++year`, `++yore` `++stud`, `++dust`
1718
1819 ~zod/try=> `date`(yore ~2014.6.6..21.09.15..0a16)
1920 [[a=%.y y=2.014] m=6 t=[d=6 h=21 m=9 s=15 f=~[0xa16]]]
docs/system/hoon/library/src/2q/mold/tank.md+8−8
@@ -10,16 +10,16 @@ list of `++tank` delimted by the strings in `p`.
1010Source
1111------
1212
13− ++ tank $% [%leaf p=tape] :: printing formats
14− $: %palm :: backstep list
15− p=[p=tape q=tape r=tape s=tape] ::
16− q=(list tank) ::
13+ ++ tank $% {$leaf p/tape} :: printing formats
14+ $: $palm :: backstep list
15+ p/{p/tape q/tape r/tape s/tape} ::
16+ q/(list tank) ::
1717 == ::
18− $: %rose :: flat list
19− p=[p=tape q=tape r=tape] :: mid open close
20− q=(list tank) ::
18+ $: $rose :: flat list
19+ p/{p/tape q/tape r/tape} :: mid open close
20+ q/(list tank) ::
2121 == ::
22− ==
22+ == ::
2323
2424Examples
2525--------
docs/system/hoon/library/src/2q/mold/tape.md+1−1
@@ -3,7 +3,7 @@
33
44List of chars
55
6−One of Hoon's two string types, the other being [`++cord`](). A tape is a
6+One of Hoon's two string types, the other being `++cord`. A tape is a
77list of chars.
88
99Source
docs/system/hoon/library/src/2q/mold/tarp.md+4−4
@@ -2,18 +2,18 @@
22
33Day through second
44
5−The remaining part of a [`++date`](): day, hour, minute, second and a list
6−of [`@ux`]() for precision.
5+The remaining part of a `++date`: day, hour, minute, second and a list
6+of `@ux` for precision.
77
88Source
99------
1010
11− @ud h=@ud m=@ud s=@ud f=(list ,@ux)] :: parsed time
11+ ++ tarp {d/@ud h/@ud m/@ud s/@ud f/(list @ux)} :: parsed time
12+
1213
1314Examples
1415--------
1516
16−See also: [`++date`](), [`++yell`[]()/`++yule`]()
1717
1818 ~zod/try=> -<-
1919 ~2014.9.20..00.43.33..b52a
docs/system/hoon/library/src/2q/mold/term.md+3−3
@@ -4,15 +4,15 @@ Hoon constants
44
55A restricted text atom for Hoon constants. The only characters permitted are
66lowercase ASCII, `-`, and `0-9`, the latter two of which can neither be the first or last
7−character. The syntax for [`@tas`]() is the text itself, always preceded by `%`.
8−This means a term is always [cubical](). The empty `@tas` has a special syntax,
7+character. The syntax for `@tas` is the text itself, always preceded by `%`.
8+This means a term is always cubical. The empty `@tas` has a special syntax,
99`$`.
1010
1111
1212Source
1313------
1414
15− ++ term ,@tas :: Hoon ASCII subset
15+ ++ term @tas :: Hoon ASCII subset
1616
1717Examples
1818--------
docs/system/hoon/library/src/2q/mold/wain.md+2−22
@@ -2,33 +2,13 @@
22
33 ++ wain (list cord) :: text lines (no \n)
44
5−A list of lines. A `++wain` is used instead of a single [`++cord`]() with
5+A list of lines. A `++wain` is used instead of a single `++cord` with
66`\n`.
77
8−See also: [`++lore`](), [`++role`]()
8+See also: `++lore`, `++role`
99
1010 ~zod/try=> `wain`/som/del/rok
1111 <|som del rok|>
12− ~zod/try=> `wain`(lore ^:@t/=main=/bin/tree/hoon)
13− <|
14− !:
15− :: /===/bin/tree/hoon
16− |= ^
17− |= [pax=path fla=$|(~ [%full ~])]
18− =- ~[te/-]~
19− =+ len=(lent pax)
20− =+ rend=?~(fla |=(a=path +:(spud (slag len a))) spud)
21− |- ^- wain
22− =+ ark=;;(arch .^(cy/pax))
23− =- ?~ q.ark -
24− [(crip (rend pax)) -]
25− %- zing
26− %- turn :_ |=(a=@t ^$(pax (weld pax `path`/[a])))
27− %- sort :_ aor
28− %- turn :_ |=([a=@t ~] a)
29− (~(tap by r.ark))
30− |>
31−
3212
3313
3414***
docs/system/hoon/library/src/2q/mold/wall.md+5−11
@@ -3,7 +3,7 @@
33List of lines
44
55
6−A `++wall` is used instead of a single [`++tape`]() with
6+A `++wall` is used instead of a single `++tape` with
77`\n`.
88
99Source
@@ -14,20 +14,14 @@ Source
1414Examples
1515--------
1616
17−See also: [`++wash`]()
17+See also: `++wash`
1818
19− ~zod/try=> `wall`(wash [0 20] leaf/<(bex 256)>)
19+ ~zod/try=> `wall`(wash [0 20] leaf+<(bex 256)>)
2020 <<
21− "\/115.792.089.237.\/"
22− " 316.195.423.570."
23− " 985.008.687.907."
24− " 853.269.984.665."
25− " 640.564.039.457."
26− " 584.007.913.129."
27− " 639.936"
28− "\/ \/"
21+ "115.792.089.237.316.195.423.570.985.008.687.907.853.269.984.665.640.564.039.457.584.007.913.129.639.936"
2922 >>
3023
3124
3225
26+
3327***