🚀 Getting Started with Razen Lang: A Simple, Fast & Friendly Language
Razen Lang is a beginner-friendly, minimal programming language designed to be expressive, easy to read, and quick to use. In this post, we’ll explore everything you need to get started — syntax, variables, usage, and how to install it properly for your system.
🌟 This post is a complete guide with examples — a must-read if you’re new to Razen!
📦 Installation (Custom Per OS)
Razen Lang supports multiple operating systems, but there's no single universal install command.
👉 Visit the official GitHub repository to find the right command for your OS:
🔗 Razen GitHub Repo (Follow & Star!)
You’ll find install guides, examples, and updates there.
📄 File Structure: Start With type
Every Razen file starts by declaring its type:
type script;
You can also use type web;
or type cli;
depending on your use case.
🧠 Variable Declarations
Razen uses different keywords for different data types, making code self-explanatory and clean.
🔢 Numbers – let
let age = 16;
let price = 19.99;
🔤 Strings – take
take name = "Razen";
take city = "Ahmedabad";
✅ Booleans – hold
hold is_active = true;
hold is_admin = false;
❓ Any Type – put
put data = "anything";
➗ Math Operations
Use math-specific keywords to perform operations, without let
:
diff result = 10 - 3;
sum total = 5 + 9;
prod mult = 3 * 4;
div avg = 10 / 2;
mod remain = 10 % 3;
✅ Always end statements with
;
— it's optional, but highly recommended to avoid errors.
🔁 Logic & Conditions
hold is_logged = true;
if is_logged {
show "Welcome back!";
} else {
show "Please login.";
}
Use is
for comparisons:
if age is 18 {
show "You're 18!";
}
Use not
to negate:
if not is_logged {
show "Access denied.";
}
📏 Strings
take msg = "Hello, Razen!";
len msg; # Get length
slice msg 0 5; # Get substring
concat msg " Dev!"; # Join text
📚 Lists & Arrays
list users = ["Jay", "Neha", "Sam"];
append users "Nina";
remove users "Jay";
arr marks = [90, 85, 88]; # Fixed size
🗺️ Dictionaries / Maps
map student = {
"name": "Aman",
"age": 17
};
key student; # Access keys
value student; # Access values
⏰ Date & Time
current;
year;
month;
day;
hour;
minute;
second;
🧾 Input / Output
show "Enter your name:";
read name;
show name;
🔁 Loops & Functions
while age < 18 {
show "Too young!";
}
fun greet {
show "Hello!";
return;
}
🧠 Special Values
true;
false;
null;
💾 Storage
store data = "Saved";
box temp = 42;
ref alias = name;
🧪 Full Example
type script;
take name = "Razen";
let age = 16;
if age is 16 {
show "You’re 16!";
}
sum total = 10 + 5;
diff difference = 20 - 7;
show total;
show difference;
🎯 Final Notes
✅ Use ;
at the end of lines — not required, but recommended
✅ Go to GitHub to install for your OS
✅ Star and follow the repo to support Razen!
If you liked this deep-dive, drop a follow and star the repo — let’s build an awesome Razen community together! 🚀💬