1.0.2 • Published 10 months ago
lovda-compiler v1.0.2
Lovda Compiler
A CLI package that converts .lovda files to JavaScript.
If you come from telugu community you not need to much explanation about this project else
Google it about the words
Installation
npm install lovda-compileror using Yarn:
yarn add lovda-compilerUsage
- Create a
lovdafolder in your project - Add
.lovdafiles inside the folder - The compiler will generate JavaScript files in
dist/[filename].js
Example .lovda file:
puka PI = 3.14; // puka is const
lanja radius = 10; // lanja is let
loop (lanja i = 0; i < 5; i++) {
bayata.dengu("Iteration:", i);
}
bayata.dengu("Area:", PI * radius * radius);Generated JavaScript output:
const PI = 3.14;
let radius = 10;
for (let i = 0; i < 5; i++) {
console.log("Iteration:", i);
}
console.log("Area:", PI * radius * radius);Key Mappings
puka→constlanja→letloop→forbayata.dengu()→console.log()
Contributing
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
License
MIT License - see LICENSE
Contact
GitHub: manideep1428
Note: This project uses Telugu slang expressions.