on master help sign in
Merge branch 'is-this-right'
a3d42b7David Kerschner
reference/arvo-glossary.md+2−2
@@ -43,7 +43,7 @@ dry.
43 path, which works as if we expanded the callee with the caller's
43 path, which works as if we expanded the callee with the caller's
44 context.
44 context.
45
45
46−_See [advanced types](/docs/hoon/hoon-expressions/advanced/)_.
46+_See [advanced types](/docs/reference/hoon-expressions/advanced/)_.
47
47
48
48
49
49
@@ -718,7 +718,7 @@ Here's some common structure terminology:
718
718
719#### icon: The type of the mold's range
719#### icon: The type of the mold's range
720
720
721−_See [mold hoons](/docs/hoon/hoon-expressions/rune/buc/)._
721+_See [mold hoons](/docs/reference/hoon-expressions/rune/buc/)._
722
722
723### rune
723### rune
724
724
reference/hoon-errors.md+9−11
@@ -21,9 +21,9 @@ Usually, the line and column tell you everything you need to
21know. But the worst-case scenario for a syntax error is that,
21know. But the worst-case scenario for a syntax error is that,
22somewhere above, you've confused Hoon's tall form by using the
22somewhere above, you've confused Hoon's tall form by using the
23wrong fanout for a rune. For example, `%+` ([**cenlus**](@/docs/reference/hoon-expressions/rune/cen.md#cenlus),
23wrong fanout for a rune. For example, `%+` ([**cenlus**](@/docs/reference/hoon-expressions/rune/cen.md#cenlus),
24−a function call whose sample is a cell) has three subreferences:
24+a function call whose sample is a cell) has three subhoons:
25
25
26−```reference
26+```hoon
27%+ foo
27%+ foo
28 bar
28 bar
29baz
29baz
@@ -31,7 +31,7 @@ baz
31
31
32But if you make a mistake and write
32But if you make a mistake and write
33
33
34−```reference
34+```hoon
35%+ foo
35%+ foo
36bar
36bar
37```
37```
@@ -100,13 +100,12 @@ means you tried to pound a square peg into a round hole.
100What was the peg and what was the hole? Hoon doesn't tell you by
100What was the peg and what was the hole? Hoon doesn't tell you by
101default, because moral fiber, and also because in too many cases
101default, because moral fiber, and also because in too many cases
102trivial errors lead to large intimidating dumps. However, you
102trivial errors lead to large intimidating dumps. However, you
103−can use the `~!` rune ([**sigzap**](@/docs/reference/hoon-expressions/rune/sig.md#sigzap)) to print the type of
103+can use the `~!` rune ([**sigzap**](@/docs/reference/hoon-expressions/rune/sig.md#sigzap)) to print the type of any hoon in your stack trace.
104−any reference in your stack trace.
105
104
106For instance, you wrote `(foo bar)` and got a `nest-fail`. Change
105For instance, you wrote `(foo bar)` and got a `nest-fail`. Change
107your code to be:
106your code to be:
108
107
109−```reference
108+```hoon
110~! bar
109~! bar
111~! +6.foo
110~! +6.foo
112(foo bar)
111(foo bar)
@@ -129,8 +128,7 @@ function.
129### `mint-vain` and `mint-lost`
128### `mint-vain` and `mint-lost`
130
129
131These are errors caused by type inference in pattern matching.
130These are errors caused by type inference in pattern matching.
132−`mint-vain` means this reference is never executed. `mint-lost` means
133−there's a case in a `?-` ([**wuthep**](@/docs/reference/hoon-expressions/rune/wut.md#wuthep)) that isn't handled.
131+`mint-vain` means this hoon is never executed. `mint-lost` means there's a case in a `?-` ([**wuthep**](@/docs/reference/hoon-expressions/rune/wut.md#wuthep)) that isn't handled.
134
132
135## Runtime crashes
133## Runtime crashes
136
134
@@ -146,7 +144,7 @@ stack trace will show what your code was doing when interrupted.
146The counterpart of `~!` for runtime crashes is `~|`
144The counterpart of `~!` for runtime crashes is `~|`
147([**sigbar**](@/docs/reference/hoon-expressions/rune/sig.md#sigbar)):
145([**sigbar**](@/docs/reference/hoon-expressions/rune/sig.md#sigbar)):
148
146
149−```reference
147+```hoon
150~| foo
148~| foo
151(foo bar)
149(foo bar)
152```
150```
@@ -163,7 +161,7 @@ functional language, but it still happens.
163`~&` ([**sigpam**](@/docs/reference/hoon-expressions/rune/sig.md#sigpam)) is Hoon's debugging printf.
161`~&` ([**sigpam**](@/docs/reference/hoon-expressions/rune/sig.md#sigpam)) is Hoon's debugging printf.
164This pretty-prints its argument:
162This pretty-prints its argument:
165
163
166−```reference
164+```hoon
167~& foo
165~& foo
168(foo bar)
166(foo bar)
169```
167```
@@ -172,7 +170,7 @@ will always print `foo` every time it executes. A variant is
172`~?` ([**sigwut**](@/docs/reference/hoon-expressions/rune/sig.md#sigwut)), which prints only if a condition is
170`~?` ([**sigwut**](@/docs/reference/hoon-expressions/rune/sig.md#sigwut)), which prints only if a condition is
173true:
171true:
174
172
175−```reference
173+```hoon
176~? =(37 (lent foo)) foo
174~? =(37 (lent foo)) foo
177(foo bar)
175(foo bar)
178```
176```
reference/hoon-expressions/irregular.md+1−1
@@ -241,7 +241,7 @@ See [%sand](@/docs/reference/hoon-expressions/rune/constants.md#warm) for other
241
241
242### Wings
242### Wings
243
243
244−[docs](content/docs/hoon/hoon-expressions/limb/wing.md)
244+[docs](content/docs/reference/hoon-expressions/limb/wing.md)
245`[%wing p=(list limb)]`; a limb search path.
245`[%wing p=(list limb)]`; a limb search path.
246`a.b` finds limb `a` within limb `b` ("var" `a` within "var" `b`).
246`a.b` finds limb `a` within limb `b` ("var" `a` within "var" `b`).
247
247
tutorials/arvo/gall.md+1−1
@@ -1064,7 +1064,7 @@ from the command line, which we we did with `:echo 5`
1064(`:[app-name] [argument(s)]`).
1064(`:[app-name] [argument(s)]`).
1065
1065
1066In this case, `++poke-noun` takes an argument (**sample**) `arg` and
1066In this case, `++poke-noun` takes an argument (**sample**) `arg` and
1067−prints it to dojo with `~&` ([sigpam](/docs/hoon/hoon-expressions/rune/sig#sigpam/)).
1067+prints it to dojo with `~&` ([sigpam](/docs/reference/hoon-expressions/rune/sig#sigpam/)).
1068This is an unusual rune that formally "does nothing", but the interpreter
1068This is an unusual rune that formally "does nothing", but the interpreter
1069detects it and printfs the first child, before executing the second as if the
1069detects it and printfs the first child, before executing the second as if the
1070first didn't exist. This is a slightly hacky way of printing to the console,
1070first didn't exist. This is a slightly hacky way of printing to the console,
tutorials/hoon/bank-account.md+1−1
@@ -75,7 +75,7 @@ Each of these arms produces a gate which takes an `@ud` argument. Each of these
75+>.$(balance (add balance amount))
75+>.$(balance (add balance amount))
76```
76```
77
77
78−`+>` is [wing syntax](/docs/hoon/hoon-expressions/limb/limb/). This particularly wing construction looks for the the tail of the tail (the third element) in `$`, the subject of the gate we are in, which is the entire `new-account` door. We change `balance` to be the result of adding `balance` and `amount` and produce the door as the result. `withdraw` functions the same way only doing subtraction instead of addition.
78+`+>` is [wing syntax](/docs/reference/hoon-expressions/limb/limb/). This particularly wing construction looks for the the tail of the tail (the third element) in `$`, the subject of the gate we are in, which is the entire `new-account` door. We change `balance` to be the result of adding `balance` and `amount` and produce the door as the result. `withdraw` functions the same way only doing subtraction instead of addition.
79
79
80It's important to notice that the sample, `balance`, is stored as part of the door rather than existing outside of it.
80It's important to notice that the sample, `balance`, is stored as part of the door rather than existing outside of it.
81
81
tutorials/hoon/conditionals.md+1−1
@@ -70,6 +70,6 @@ We only went into three "wut" runes in our walkthrough, but there are many other
70
70
71- `?|` takes an indefinite number of children. It's the logical "or" operator. It checks if at least one of its children is true.
71- `?|` takes an indefinite number of children. It's the logical "or" operator. It checks if at least one of its children is true.
72
72
73−To see an exhaustive list of "wut" runes, check out the [reference documentation on conditionals](/docs/hoon/hoon-expressions/rune/wut/).
73+To see an exhaustive list of "wut" runes, check out the [reference documentation on conditionals](/docs/reference/hoon-expressions/rune/wut/).
74
74
75### [Next Up: Reading -- Lists](../lists)
75### [Next Up: Reading -- Lists](../lists)
tutorials/hoon/hoon-syntax.md+2−2
@@ -309,10 +309,10 @@ Standard library functions are often built with other standard library functions
309
309
310The Hoon syntax can be intimidating for the uninitiated, so it's good to remember where you can look up expressions can be found. The [reference section](/docs/reference/) itself is a good place to find the reference materials that you need. These children sections are likely to be useful:
310The Hoon syntax can be intimidating for the uninitiated, so it's good to remember where you can look up expressions can be found. The [reference section](/docs/reference/) itself is a good place to find the reference materials that you need. These children sections are likely to be useful:
311
311
312−- The [Runes](/docs/hoon/hoon-expressions/) page will show you how to use any Hoon rune.
312+- The [Runes](/docs/reference/hoon-expressions/) page will show you how to use any Hoon rune.
313- The [Cheat sheet](/docs/reference/cheat-sheet/) is a more compact place to look up rune expressions.
313- The [Cheat sheet](/docs/reference/cheat-sheet/) is a more compact place to look up rune expressions.
314- The [Standard library](/docs/reference/library/) section has its sub-pages arranged by category. So arithmetic functions, for example, are all found on the same page.
314- The [Standard library](/docs/reference/library/) section has its sub-pages arranged by category. So arithmetic functions, for example, are all found on the same page.
315−- The [Hoon Style Guide](/docs/hoon/style/) will show you how to write your Hoon code so that it's idiomatic and easily understood by others.
315+- The [Hoon Style Guide](/docs/reference/style/) will show you how to write your Hoon code so that it's idiomatic and easily understood by others.
316
316
317### Debugging
317### Debugging
318
318
tutorials/nock/_index.md+1−1
@@ -9,7 +9,7 @@ aliases = ["docs/learn/nock/"]
9
9
10Nock is the low-level functional programming language that is interpreted by Vere. You don't need to know Nock to write Hoon, or even to work on most parts of Vere. But if you want to understand the foundations of Urbit and are mathematically-inclined, dive right in.
10Nock is the low-level functional programming language that is interpreted by Vere. You don't need to know Nock to write Hoon, or even to work on most parts of Vere. But if you want to understand the foundations of Urbit and are mathematically-inclined, dive right in.
11
11
12−## [Nock Definition](@/docs/tutorials//nock/definition.md)
12+## [Nock Definition](@/docs/tutorials/nock/definition.md)
13
13
14The Nock specification.
14The Nock specification.
15
15