summaryrefslogtreecommitdiff
path: root/docs/syntax/operators.md
blob: dc518ab03fcfb476ecbed4fdfa51ef0a1acae301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# General Operators

---

## Assign `:`

## Shadow `::`

## Cast `$`

## ``print`

```text
Result[I32] : Is[File; Void] `print Any
```

If no `File` is specified the output is send to `stdout`

## ``format`

```text
Result[String] : Const[String]`format Any
```

### Formatting

#### Replace

Use `%` to indicate an item from `Any`, use `\%` for a literal `%`

#### Colors

Use `#NAME#` to change the text color, use `#` to reset the text color, use `\#` for a literal `#`

```text
BOLD
FAINT
ITALIC
UNDERLINE - UL

BACKGROUND - BG
LIGHT

BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
GREY
WHITE
```

`#NAME#NAME#` use single `#` to apply multiple colors at once

## ``panic`

Stops execution and prints `Any` to `stdout`

```text
`panic any
```

## ``type`

## ``return_type`

## ``fork_type`