mirror of
https://github.com/Alvin-Zilverstand/Tralalero_lang.git
synced 2026-12-01 18:41:23 +01:00
feat: Implement arithmetic operations
This commit is contained in:
1 parent
c4e6c7c1cc
commit
ea9eead3ba
3 files changed
+44
-2
No files matched your search
@@ -44,4 +44,16 @@ Pinguino Arrabiato Fruti 3
|
||||
}
|
||||
```
|
||||
|
||||
## Ciao!
|
||||
### `Chimpanzini <variable_name> <operand1> <operator> <operand2>`
|
||||
|
||||
This command performs an arithmetic operation and stores the result in a variable. The supported operators are `+`, `-`, `*`, `/`.
|
||||
|
||||
Example:
|
||||
```tralalero
|
||||
Biscottini x 10
|
||||
Biscottini y 5
|
||||
Chimpanzini result x + y
|
||||
Matteeeo result // prints 15
|
||||
```
|
||||
|
||||
## Ciao!
|
||||
Reference in new issue
Block a user