1.0.2 • Published 6 months ago

lovda-compiler v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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-compiler

or using Yarn:

yarn add lovda-compiler

Usage

  1. Create a lovda folder in your project
  2. Add .lovda files inside the folder
  3. 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

  • pukaconst
  • lanjalet
  • loopfor
  • bayata.dengu()console.log()

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

License

MIT License - see LICENSE

Contact

GitHub: manideep1428

Note: This project uses Telugu slang expressions.

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago