zalphalang
v1.0.0
Published
ZalphaLang is a simple and lightweight language for Gen Z and Gen Alhpa.
Maintainers
Readme
ZalphaLang
ZalphaLang is a basic programming language written in Typescript and compiled later into Javascript for Gen Z and Gen Alpha.
Installation
Go to your project directory and install ZalphaLang.
npm i zalphalang zalpharunnerThen, add the following to the scripts section of your package.json:
"start": "node ./node_modules/zalpharunner/run.js"Your package.json file should be looking similar to this:
{
"scripts": {
"start": "node ./node_modules/zalpharunner/run.js"
},
"dependencies": {
"zalphalang": "^1.0.0",
"zalpharunner": "^1.0.0"
}
}ZalphaLang is subject to constant improvements hence use the following command in your project directory to stay updated.
npm updateDocumentation
Keywords
"Start of the program": "vibe check",
"End of the program": "peace out",
"Variable declaration": "yo this is",
"Print statement": "display",
"If statement": "lemme check if",
"Else statement": "or else",
"Else if statement": "or else if",
"While loop": "keep it rolling",
"Break statement": "stop",
"Continue statement": "slide thru",
"Function declaration": "ah shi here we go again",Data types
"Null value": "cancelled",
"Boolean true": "facts",
"Boolean false": "cap",
"Array": "squad",Error message
"Syntax error": "vibe check failed"Usage/Examples
Create a new file (test.js)
Run the code using npm start -- your-file-name.js
Example 1:
vibe check
display "Hello World";
peace outOutputs: [ 'Hello World!' ]
Example 2:
vibe check
yo this is a = 5;
yo this is b = 10;
display a + b;
display a - b;
display a * b;
display a / b;
peace outOutputs: [ 15, -5, 50, 0.5 ]
Roadmap
- Add support for conditional statements
- Improve code syntax
- Add more keywords
- Add functions
- Improve Error Handling
- Add Debugging Tools
- Code Optimization
