Skip to content

Commit f08e100

Browse files
committed
Fixed links and small improvements
1 parent 5cd9686 commit f08e100

42 files changed

Lines changed: 220 additions & 155 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/src/SUMMARY.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,28 @@
3333
* [Comparision Operators](spec/comparision_operators.md)
3434
* [Type System](spec/type_system.md)
3535
* [Types](spec/types.md)
36-
* [Boolean Type](spec/boolean_type.md)
37-
* [Contract Type](spec/contract_type.md)
38-
* [Numeric Types](spec/numeric_types.md)
39-
* [Textual Types](spec/textual_types.md)
40-
* [Tuple Types](spec/tuple_types.md)
41-
* [Array Types](spec/array_types.md)
42-
* [Struct Types](spec/struct_types.md)
43-
* [Enumerated Types](spec/enumerated_types.md)
44-
* [Function item Types](spec/function_item_types.md)
45-
* [Address Type](spec/address_type.md)
46-
* [HashMap Type](spec/hashmap_type.md)
47-
* [String Type](spec/string_type.md)
48-
* [Event Types](spec/event_types.md)
36+
* [Boolean Type](spec/boolean_type.md)
37+
* [Contract Type](spec/contract_types.md)
38+
* [Numeric Types](spec/numeric_types.md)
39+
* [Textual Types](spec/textual_types.md)
40+
* [Tuple Types](spec/tuple_types.md)
41+
* [Array Types](spec/array_types.md)
42+
* [Struct Types](spec/struct_types.md)
43+
* [Enumerated Types](spec/enumerated_types.md)
44+
* [Address Type](spec/address_type.md)
45+
* [HashMap Type](spec/hashmap_type.md)
46+
* [String Type](spec/string_type.md)
47+
* [Event Types](spec/event_types.md)
4948
* [Data Layout](spec/data_layout.md)
50-
* [Stack](spec/stack.md)
51-
* [Storage](spec/storage.md)
52-
* [Constant size values in storage](spec/constant_size_values_in_storage.md)
53-
* [Maps in storage](spec/maps_in_storage.md)
54-
* [`to_mem()` function](spec/to_mem_function.md)
55-
* [Memory](spec/memory.md)
56-
* [Sequence types in memory](spec/sequence_types_in_memory.md)
57-
* [Maps in storage](spec/maps_in_storage.md)
58-
* [`clone()` function](spec/clone_function.md)
49+
* [Stack](spec/stack.md)
50+
* [Storage](spec/storage.md)
51+
* [Constant size values in storage](spec/constant_size_values_in_storage.md)
52+
* [Maps in storage](spec/maps_in_storage.md)
53+
* [`to_mem()` function](spec/to_mem_function.md)
54+
* [Memory](spec/memory.md)
55+
* [Sequence types in memory](spec/sequence_types_in_memory.md)
56+
* [`clone()` function](spec/clone_function.md)
5957
* [Function calls](spec/function_calls.md)
6058

61-
* [Release Notes](spec/release_notes.md)
62-
* [Code of Conduct](spec/code_of_conduct.md)
59+
* [Release Notes](release_notes.md)
60+
* [Code of Conduct](code_of_conduct.md)

docs/src/spec/arithmetic_operators.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 4.2.1 Arithmetic Operators
1+
# Arithmetic Operators
22

33
> **<sup>Syntax</sup>**\
44
> _ArithmeticExpression_ :\
@@ -18,19 +18,19 @@ Binary operators expressions are all written with [infix notation](https://en.wi
1818
This table summarizes the behavior of arithmetic and logical binary operators on
1919
primitive types.
2020

21-
| Symbol | Integer | Status | Discussions |
22-
|--------|-------------------------|-------------|----------------|
23-
| `+` | Addition | IMPLEMENTED | |
24-
| `-` | Subtraction | IMPLEMENTED | |
25-
| `*` | Multiplication | IMPLEMENTED | |
26-
| `/` | Division* | IMPLEMENTED | |
27-
| `%` | Remainder | IMPLEMENTED | |
28-
| `**` | Exponentiation | IMPLEMENTED | |
29-
| `&` | Bitwise AND | IMPLEMENTED | |
30-
| <code>&#124;</code> | Bitwise OR | IMPLEMENTED | |
31-
| `^` | Bitwise XOR | IMPLEMENTED | |
32-
| `<<` | Left Shift | IMPLEMENTED | |
33-
| `>>` | Right Shift | IMPLEMENTED | |
21+
| Symbol | Integer |
22+
|--------|-------------------------|
23+
| `+` | Addition |
24+
| `-` | Subtraction |
25+
| `*` | Multiplication |
26+
| `/` | Division* |
27+
| `%` | Remainder |
28+
| `**` | Exponentiation |
29+
| `&` | Bitwise AND |
30+
| <code>&#124;</code> | Bitwise OR |
31+
| `^` | Bitwise XOR |
32+
| `<<` | Left Shift |
33+
| `>>` | Right Shift |
3434

3535
\* Integer division rounds towards zero.
3636

@@ -49,4 +49,7 @@ Here are examples of these operators being used.
4949
12 ^ 25 == 21
5050
212 << 1 == 424
5151
212 >> 1 == 106
52-
```
52+
```
53+
54+
55+
[_Expression_]:expressions.md

docs/src/spec/block_expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Block Expression
1+
# Block Expression
22

33
> **<sup>Lexer:<sup>**\
44
> _BlockExpression_ :\

docs/src/spec/boolean_type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
### 5.1.1.1 Boolean type
1+
# Boolean type
22

33
The `bool` type is a data type which can be either `true` or `false`.
44

55
Example:
66

7-
```rust
7+
```Python
88
x = true
99
```

docs/src/spec/clone_function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### 6.2.3. The `clone` function
1+
# The `clone` function
22

33
Reference type values in memory can be cloned using the `clone` function.
44

docs/src/spec/code_of_conduct.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/src/spec/comments.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
### Comments
1+
# Comments
22

33
> **<sup>Lexer</sup>**\
44
> LINE_COMMENT :\
5-
> &nbsp;&nbsp; &nbsp;&nbsp; `#` `<sup>\*</sup>\
6-
> &nbsp;&nbsp; | `#`
5+
> &nbsp;&nbsp; &nbsp;&nbsp; `#` <sup>*</sup>
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 4.2.2 Comparision Operators
1+
# Comparision Operators
22

33
> **<sup>Syntax</sup>**\
44
> _ComparisonExpression_ :\
@@ -10,14 +10,14 @@
1010
> &nbsp;&nbsp; | [_Expression_] `<=` [_Expression_]
1111
1212

13-
| Symbol | Meaning | Status |
14-
|--------|--------------------------|----------------------------|
15-
| `==` | Equal | IMPLEMENTED |
16-
| `!=` | Not equal | IMPLEMENTED |
17-
| `>` | Greater than | IMPLEMENTED |
18-
| `<` | Less than | IMPLEMENTED |
19-
| `>=` | Greater than or equal to | IMPLEMENTED |
20-
| `<=` | Less than or equal to | IMPLEMENTED |
13+
| Symbol | Meaning |
14+
|--------|--------------------------|
15+
| `==` | Equal |
16+
| `!=` | Not equal |
17+
| `>` | Greater than |
18+
| `<` | Less than |
19+
| `>=` | Greater than or equal to |
20+
| `<=` | Less than or equal to |
2121

2222
Here are examples of the comparison operators being used.
2323

@@ -29,3 +29,5 @@ Here are examples of the comparison operators being used.
2929
11 < 12
3030
11 <= 11
3131
```
32+
33+
[_Expression_]:expressions.md

docs/src/spec/constant_size_values_in_storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Constant size values in storage
1+
# Constant size values in storage
22

33
Storage pointers for constant size values are determined at compile time.
44

docs/src/spec/contract_type.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)