mirror of
https://github.com/Alvin-Zilverstand/Tralalero_lang.git
synced 2026-12-01 02:27:53 +01:00
feat: Implement loops
This commit is contained in:
1 parent
eb1a79dc88
commit
74307d5bbd
3 files changed
+64
-10
No files matched your search
@@ -32,4 +32,16 @@ This command prints a value to the console. The value can be a string literal (e
|
||||
|
||||
This command declares a variable and assigns a value to it. The value can be a string literal or a number.
|
||||
|
||||
## Ciao!
|
||||
### `Pinguino Arrabiato Fruti <number>`
|
||||
|
||||
This command creates a loop that repeats a block of code a specified number of times. The block of code must be enclosed in `{` and `}` on separate lines.
|
||||
|
||||
Example:
|
||||
```trallalelo
|
||||
Pinguino Arrabiato Fruti 3
|
||||
{
|
||||
Matteeeo "Hello"
|
||||
}
|
||||
```
|
||||
|
||||
## Ciao!
|
||||
Reference in new issue
Block a user