Making of EmoScript:- A fun programming Language
EmoScript Documentation
Welcome to EmoScript, where your coding experience meets the depths of emotion! This language uses emojis to represent TypeScript syntax in a fun and relatable way, allowing you to express your inner thoughts and feelings while you code. Whether you're venting about life or just looking to have a laugh, EmoScript has got your back!
This page is still in progress
EmoScript Syntax
1. Variables
Declare Variables:
💔 for let (because nothing lasts forever).
💀 for const (it’s unchangeable and final).
Example:
💔 pain = "infinite"; // Mutable variable
💀 depression = "forever"; // Immutable variable
2. Print Statements
Print:
😠for console.log (crying is a universal response).
Example:
javascript
ðŸ˜("Life is meaningless..."); // Prints the message
3. Conditionals
If Statement:
❤️ for if (the true emo heart).
Else Statement:
💔 for else (because even backup plans break hearts).
Example:
❤️ (heartbreak > 1000) {
ðŸ˜("Too much pain, I can't go on...");
} 💔 {
ðŸ˜("I'm used to the pain by now...");
}
4. Loops
While Loop:
🔄 for while (because life keeps repeating).
Example:
🔄 (sadness < infinite) {
ðŸ˜("Still sad...");
sadness++;
}
5. Functions
Define Function:
✍️ for function definitions (writing your emotional poetry).
Example:
✍️ loveHurts() {
ðŸ˜("Nobody understands me...");
}
6. Return Statement
Return:
👋 for return (time to leave, obviously).
Example:
👋 pain; // Returns the current value of 'pain'
7. Errors
Throw Error:
💣 for throw (because it’s explosively emotional).
Example:
💣("I can't handle this anymore!"); // Throws an error
8. Additional EmoScript Touches
Break Statement:
💧 (you can't keep it together anymore).
Example:
💧; // Breaks out of the current loop or function
Continue Statement:
⏭️ (skipping through pain but it’ll always return).
Example:
⏭️; // Skips the current iteration
Null:
🖤 (your heart is empty and void).
Example:
💔 love = 🖤; // Sets 'love' to null
Full EmoScript Example
Here’s how it all comes together in an EmoScript program:
💔 pain = "infinite";
💀 depression = "forever";
✍️ loveHurts() {
🖤 (pain === "infinite") {
ðŸ˜("Love always ends in heartbreak...");
} 💔 {
ðŸ˜("Just like every sad song ever...");
}
👋 depression; // Returns 'depression'
}
🔄 (pain <= 100) {
pain++;
ðŸ˜("Pain level increasing: " + pain); // Outputs current pain level
}
loveHurts(); // Calls the function
Conclusion
EmoScript is not just a fun take on coding; it's a way to connect with your feelings while you write. With its unique use of emojis, it transforms traditional programming into an expressive art form. Whether you're dealing with heartbreak or just want to add a bit of humor to your code, EmoScript will keep you entertained and engaged. So go ahead, dive into your emotions, and let your code flow freely!
Comments
Post a Comment