memelang-vscode
v0.1.0
Published
Language support for MemeLang programming language
Maintainers
Readme
MemeLang VS Code Extension
This extension provides language support for the MemeLang programming language.
Features
- Syntax highlighting for MemeLang keywords, operators, and built-in functions
- Bracket matching and auto-closing pairs
- Code folding support
- Comment toggling
- Full support for OOP keywords and features
- Import/Export statement highlighting
- Support for
.mlfile extension
Installation
From VSIX file
- Download the
.vsixfile - Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Click on the "..." in the top-right of the Extensions view
- Select "Install from VSIX..."
- Navigate to the downloaded
.vsixfile and install it
Manual Installation
- Copy this folder to your VS Code extensions folder:
- Windows:
%USERPROFILE%\.vscode\extensions - macOS/Linux:
~/.vscode/extensions
- Windows:
- Restart VS Code
MemeLang Language Keywords
Program Structure
hi_bhai- Program startbye_bhai- Program end
Variable Declaration
rakho- Variable declaration (let)pakka- Constant declaration (const)
Control Flow
agar- If statementwarna- Else statementjabtak- While loopbas_karo- Break statementagla_dekho- Continue statement
Functions
kaam- Function declarationwapas- Return statement
OOP Features
class- Class declarationextends- Inheritanceconstructor- Constructor methodthis- Current instancesuper- Parent class referencenew- Create object instancepublic- Public access modifierprivate- Private access modifierprotected- Protected access modifierstatic- Static method/property
Import/Export
import- Import declarationexport- Export declarationfrom- Import sourcedefault- Default export
Others
chaap- Print statementkuch_nahi- Null valuesahi- True valuegalat- False valueaur- Logical ANDya- Logical ORnahi- Logical NOT
Example
hi_bhai
// Define a Person class
class Person {
// Constructor
constructor(name, age) {
this.name = name;
this.age = age;
}
// Method to greet
namaste() {
chaap("Namaste, my name is " + this.name + " and I am " + this.age + " years old.");
}
}
// Create a Person instance
rakho rahul = new Person("Rahul", 25);
rahul.namaste();
bye_bhaiLicense
MIT
