Skip to content

Commit 1d949d9

Browse files
committed
Minimize examples.
1 parent 2905089 commit 1d949d9

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

src/glossory.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,12 @@
33
### Abstract Syntax Tree
44

55
An ‘abstract syntax tree’, or ‘AST’, is an intermediate representation of
6-
the structure of your program when the compiler is compiling your program.
7-
8-
For example, `2 + 3` can be turned into a tree:
9-
10-
```text
11-
+
12-
/ \
13-
2 3
14-
```
15-
16-
And `2 + (3 * 4)` would look like this:
17-
18-
```text
19-
+
20-
/ \
21-
2 *
22-
/ \
23-
3 4
24-
```
6+
the structure of the program when the compiler is compiling it.
257

268
### Arity
279

2810
Arity refers to the number of arguments a function or operation takes.
29-
30-
```rust
31-
let x = (2, 3);
32-
let y = (4, 6);
33-
let z = (8, 2, 6);
34-
```
35-
36-
In the example above `x` and `y` have arity 2. `z` has arity 3.
11+
For example, `(2, 3)` and `(4, 6)` have arity 2, and`(8, 2, 6)` has arity 3.
3712

3813
### Array
3914

0 commit comments

Comments
 (0)