# Paijorot Language (FULLY AI WRITTEN)
Paijorot is a simple interpreted programming language implemented in Rust. It's designed as a hobby project with unique "brainrot" syntax. ***(FULLY AI WRITTEN)***
## Features
- Dynamic typing
- Fixed indentations
- Memory safety (following Rust's standards)
- Simple syntax inspired by modern internet slang
- Support for variables, functions, loops, and user input
## Syntax Overview
### Print Statements
```
yap "Hello World"; // Equivalent to Rust's println!()
```
### Variable Declaration
```
ts x pmo 42; // Equivalent to "let x = 42;" in Rust
```
### Array Declaration
```
gyat numbers {1, 2, 3, 4, 5}; // Declare an array
```
### Function Declaration
```
hawk add(a, b) tuah a + b; // Define a function that returns a + b
```
### Loops
```
// Infinite loop (until break)
goon
// code here
sybau; // break
edge
// For loop (20 iterations)
goon(20)
// code here
edge
```
### User Input
```
ts user_input pmo yeet; // Read user input into variable
```
## Example Program
```
yap "Hello, world!";
ts x pmo 10;
ts y pmo 5;
hawk add(a, b) tuah a + b;
yap "The sum is:";
yap add(x, y);
yap "Enter your name:";
ts name pmo yeet;
yap "Hello, ";
yap name;
goon(3)
yap "Loop iteration";
edge
```
## Running Paijorot Programs
1. Install the interpreter:
```
cargo install paijorot
```
2. Run a Paijorot program:
```
paijorot example.paijorot
```
## Language Reference
### Keywords
- `yap` - Print to standard output
- `ts` - Declare a variable
- `pmo` - Assign a value
- `gyat` or `gyatt` - Declare an array
- `hawk` - Define a function
- `tuah` - Return a value
- `goon` - Begin an infinite loop
- `goon(n)` - Begin a loop for n iterations
- `edge` - End a loop block
- `yeet` - Read user input
- `sybau` - Break out of the current loop
### Operators
- `+` - Addition
- `-` - Subtraction
- `*` - Multiplication
- `/` - Division
Enjoy programming with Paijorot!