| Crates.io | relo |
| lib.rs | relo |
| version | 0.1.2 |
| created_at | 2025-04-12 05:17:46.673616+00 |
| updated_at | 2025-04-13 08:47:17.855235+00 |
| description | A custom programming language with a readable syntax (RELO). |
| homepage | https://github.com/abdul061/RELO-Programming-language |
| repository | https://github.com/abdul061/RELO-Programming-language |
| max_upload_size | |
| id | 1630635 |
| size | 146,790 |
# RELO
A custom-built programming language interpreter and compiler written in Rust, designed to resemble simple English-like syntax such as:
VARIABLE x IS 10;x ASSIGN x + 1;DISPLAY "Hello";WHEN condition { ... } OTHERWISE { ... } DONE;CREATE FUNCTION myfunc { ... } END_FN;## ๐ Features
IS, ASSIGN, DISPLAY, START, END)WHEN, OTHERWISE)REPEAT, LOOP, QUIT)CREATE FUNCTION, CALL, RETURN)cargo run --release.
โโโ lexer/ # Tokenizer for custom keywords and literals
โโโ parser/ # Builds AST from tokens
โโโ interpreter/ # Tree-walk interpreter
โโโ compiler/ # Compiler to bytecode
โโโ vm/ # Stack-based virtual machine
โโโ main.rs # Program entry point
โโโ README.md
**๐งช Example Program**
START
VARIABLE i IS 1;
LOOP i Start 1 End 5 {
DISPLAY i;
i ASSIGN i + 1;
} DONE;
END
Edit
START
VARIABLE i IS 1;
LOOP i Start 1 End 5 {
DISPLAY i;
i ASSIGN i + 1;
} DONE;
END
**๐ Running the Project
๐ง Debug (for development)**
cargo run
**โก Release (optimized for speed)**
bash
cargo run --release
๐ Measure performance
Execution time is printed automatically after the program finishes.
**โ๏ธ Author**
Abdul Mubarak H
๐ง abdulmubarak682@gmail.com
****๐ License****
MIT License โ Free to use, modify, and distribute.
---
Would you like me to:
- Add badges (build status, language, license)?
- Create sample test files?
- Include contribution or usage guidelines?
Let me know and I can customize it even further!