Files
Toy/docs/operators.md
2024-11-17 20:20:31 +11:00

42 lines
969 B
Markdown

# Operators
The following table lists the recognized operators, and their uses.
| Symbol | Description |
| --- | --- |
| `+` | Add. |
| `-` | Subtract. |
| `*` | Multiply. |
| `/` | Divide. |
| `%` | Modulo. |
| `=` | Assign. |
| `+=` | Add Assign. |
| `-=` | Subtract Assign. |
| `*=` | Multiply Assign. |
| `/=` | Divide Assign. |
| `%=` | Modulo Assign. |
| `++` | Increment. Not yet implemented. |
| `--` | Decrement. Not yet implemented. |
| `==` | Compare Equal. |
| `!=` | Compare Not Equal. |
| `<` | Compare Less. |
| `<=` | Compare Less Equal. |
| `>` | Compare Greater. |
| `>=` | Compare Greater Equal. |
| `(` `)` | Parenthesis. |
| `[` `]` | Brackets. |
| `{` `}` | Braces. |
| `&&` | And. |
| `\|\|` | Or. |
| `!` | Not. |
| `?` `:` | Ternary. |
| `?` | Question. Not used. |
| `:` | Colon. |
| `.` | Dot. Not yet implemented. |
| `..` | Concatenate. |
| `...` | Rest. Not yet implemented. |
| `&` | Ampersand. Not used. |
| `\|` | Pipe. Not used. |