mirror of
https://github.com/Alvin-Zilverstand/Tralalero_lang.git
synced 2026-03-06 03:06:38 +01:00
47 lines
1.2 KiB
Markdown
47 lines
1.2 KiB
Markdown
# Trallalelo Lang
|
|
|
|
Benvenuto! Welcome to Trallalelo Lang, the most whimsical and brain-tickling programming language inspired by the finest Italian-flavored brainrot.
|
|
|
|
## Getting Started
|
|
|
|
To run a Trallalelo program, you need to have Rust installed. Then, you can use the following command:
|
|
|
|
```bash
|
|
cargo run -- <file_name>.tralla
|
|
```
|
|
|
|
## Syntax
|
|
|
|
A Trallalelo program must start with `Tralalero Tralala` and end with `Bombardiro Crocodilo`.
|
|
|
|
## Keywords
|
|
|
|
### `Tralalero Tralala`
|
|
|
|
This is the entry point of the program. It must be the first line of your code.
|
|
|
|
### `Bombardiro Crocodilo`
|
|
|
|
This is the exit point of the program. It must be the last line of your code.
|
|
|
|
### `Matteeeo <value>`
|
|
|
|
This command prints a value to the console. The value can be a string literal (enclosed in double quotes) or a variable.
|
|
|
|
### `Biscottini <variable_name> <value>`
|
|
|
|
This command declares a variable and assigns a value to it. The value can be a string literal or a number.
|
|
|
|
### `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! |