on master help sign in
Fixed typos and bad link encoding
fb9203ffrancescanarea
learn/hoon/hoon-tutorial/hoon-syntax.md+3−3
@@ -6,15 +6,15 @@ template = "doc.html"
6
6
7The study of Hoon can be divided into two parts: syntax and semantics.
7The study of Hoon can be divided into two parts: syntax and semantics.
8
8
9−The [syntax](https://en.wikipedia.org/wiki/Syntax_(programming_languages%29) of a programming language is the set of rules that determine what counts as admissible code in that language. It determines which characters may be used in the source, and also how these characters may be assembled to constitute a program. Attempting to run a program that doesn't follow these rules will result in a syntax error.
9+The [syntax](https://en.wikipedia.org/wiki/Syntax_%28programming_languages%29) of a programming language is the set of rules that determine what counts as admissible code in that language. It determines which characters may be used in the source, and also how these characters may be assembled to constitute a program. Attempting to run a program that doesn't follow these rules will result in a syntax error.
10
10
11−The [semantics](https://en.wikipedia.org/wiki/Semantics_(computer_science%29) of a programming language concerns the meaning of the various parts of that language's code.
11+The [semantics](https://en.wikipedia.org/wiki/Semantics_%28computer_science%29) of a programming language concerns the meaning of the various parts of that language's code.
12
12
13In this lesson we will give a general overview of Hoon's syntax. By the end of it, you should be familiar with all the basic elements of Hoon code.
13In this lesson we will give a general overview of Hoon's syntax. By the end of it, you should be familiar with all the basic elements of Hoon code.
14
14
15## Hoon Characters
15## Hoon Characters
16
16
17−Hoon source files are composed almost entirely of the [printable ASCII characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). Hoon does not accept any other characters in source files except for [UTF-8](https://en.wikipedia.org/wiki/UTF-8) in quoted strings. Hard tab characters are illegal; use two spaces instead.
17+Hoon source files are composed almost entirely of the [printable ASCII characters](https://en.wikipedia.org/wiki/ASCII%23Printable_characters). Hoon does not accept any other characters in source files except for [UTF-8](https://en.wikipedia.org/wiki/UTF-8) in quoted strings. Hard tab characters are illegal; use two spaces instead.
18
18
19```
19```
20> "You can put ½ in quotes, but not elsewhere!"
20> "You can put ½ in quotes, but not elsewhere!"
learn/hoon/hoon-tutorial/list-of-numbers.md+1−1
@@ -3,7 +3,7 @@ title = "1.1.1 Walkthrough: List of Numbers"
3weight = 3
3weight = 3
4template = "doc.html"
4template = "doc.html"
5+++
5+++
6−This code-example is intended to familiarize you with the basics of Hoon syntax. It's okay if you don't understand everything immediately; some concepts may beyond your grasp for now. What's important is that you become accustomed to the elements of the code and their look once combined into a valid program.
6+This code-example is intended to familiarize you with the basics of Hoon syntax. It's okay if you don't understand everything immediately; some concepts may be beyond your grasp for now. What's important is that you become accustomed to the elements of the code and their look once combined into a valid program.
7
7
8Below is a simple Hoon program that takes a single number `n` from the user as input and produces a list of numbers from `1` up to (but not including) `n`. So, if the user gives the number `5`, the program will produce: `~[1 2 3 4]`.
8Below is a simple Hoon program that takes a single number `n` from the user as input and produces a list of numbers from `1` up to (but not including) `n`. So, if the user gives the number `5`, the program will produce: `~[1 2 3 4]`.
9
9
using/filesystem.md+2−2
@@ -15,7 +15,7 @@ pier directory.
15## Quickstart
15## Quickstart
16
16
17This quick-start guide will walk you through some common commands. Follow along
17This quick-start guide will walk you through some common commands. Follow along
18−using your Dojo. When you get a `>=` message after entering a command, the means
18+using your Dojo. When you get a `>=` message after entering a command, this means
19that the command was successful.
19that the command was successful.
20
20
21When developing it's a good idea to use a separate desk. Create a `%sandbox`
21When developing it's a good idea to use a separate desk. Create a `%sandbox`
@@ -66,7 +66,7 @@ Let's see the contents of `/=sandbox=/web/md`:
66~your-urbit:dojo> +cat /=sandbox=/web/md
66~your-urbit:dojo> +cat /=sandbox=/web/md
67```
67```
68
68
69−Now let's navigate to that folder using `=dir`, which is a like `cd` in Unix.
69+Now let's navigate to that folder using `=dir`, which is like `cd` in Unix.
70
70
71```
71```
72~your-urbit:dojo> =dir /=sandbox=/web/md
72~your-urbit:dojo> =dir /=sandbox=/web/md
using/sail-and-udon.md+1−1
@@ -27,7 +27,7 @@ Before starting with either Sail or Udon, make sure that your ship is
27
27
28To host that output, your ship also has a web-server, called
28To host that output, your ship also has a web-server, called
29[Eyre](https://urbit.org/docs/using/web/), that can be found at
29[Eyre](https://urbit.org/docs/using/web/), that can be found at
30−`http://localhost:8080/` if it’s your first ship that’s running on the a
30+`http://localhost:8080/` if it’s your first ship that’s running on the
31machine, `http://localhost:8081/` if it’s the second ship on that same machine,
31machine, `http://localhost:8081/` if it’s the second ship on that same machine,
32and so on. In the startup messages, a ship will tell you which HTTP port it's
32and so on. In the startup messages, a ship will tell you which HTTP port it's
33using.
33using.