banglish
v0.0.3
Published
A complete, production-ready TypeScript-inspired programming language in Bengali with comprehensive utilities - বাংলায় একটি সম্পূর্ণ, উৎপাদন-প্রস্তুত টাইপস্ক্রিপ্ট-অনুপ্রাণিত প্রোগ্রামিং ভাষা
Maintainers
Keywords
Readme
Banglish Programming Language
বাংলিশ প্রোগ্রামিং ভাষা
A TypeScript-inspired programming language with Bengali keywords, designed for Bangladeshi developers.
Features
- Complete TypeScript compatibility with Bengali syntax
- React/Next.js/React Native support
- Advanced type system with generics and unions
- Production-ready build tools and CLI
- Comprehensive testing framework
- Professional VS Code extension with IntelliSense
Installation
# Install globally
npm install -g banglish
# Or in your project
npm install banglish --save-devVS Code Extension
Install the official Banglish VS Code extension for the best development experience:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Banglish Language Support"
- Click Install
Or install manually:
code --install-extension ryanwtf88.banglish-vscode-extensionQuick Start
# Initialize new project
banglish init
# Build project
banglish build
# Watch for changes
banglish watchBasic Syntax
// Variables
sthir naam: likhon = "আহমেদ আলী";
sthir boyosh: shongkha = 25;
sthir active: hoi-na-hoi = sotti;
// Functions
kaj greetUser(naam: likhon): likhon {
ferot `নমস্কার ${naam}!`;
}
// Classes
shreni User {
constructor(public naam: likhon) {}
sarbonjon greet(): likhon {
ferot `হ্যালো, আমি ${ei.naam}`;
}
}
// Interfaces
noksha ApiResponse<T> {
data: T;
status: likhon;
message: likhon;
}Framework Integration
React Component
import React, { useState } from "react";
kaj Counter(): JSX.Uporong {
sthir [count, setCount] = useState<shongkha>(0);
ferot (
<div>
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>
Increment
</button>
</div>
);
}Next.js Setup
// next.config.js
const { withBanglish } = require('banglish/nextjs');
module.exports = withBanglish({
banglish: {
strict: true,
jsx: 'preserve'
}
});Build Tools
Banglish supports all major build tools:
- Webpack -
banglish-loader - Vite -
vite-plugin-banglish - Rollup -
rollup-plugin-banglish - Jest -
banglish-jest-transformer - Metro - React Native support
- Babel -
babel-plugin-banglish
Language Reference
| TypeScript | Banglish | Description |
|------------|----------|-------------|
| const | sthir | Constant variable |
| let | dhori | Mutable variable |
| function | kaj | Function declaration |
| class | shreni | Class declaration |
| interface | noksha | Interface declaration |
| if | jodi | Conditional statement |
| else | nahole | Else clause |
| return | ferot | Return statement |
| string | likhon | String type |
| number | shongkha | Number type |
| boolean | hoi-na-hoi | Boolean type |
| true | sotti | True value |
| false | mittha | False value |
Documentation
Contributing
We welcome contributions! Please see our Contributing Guide for details.
# Development setup
git clone https://github.com/ryanwtf88/banglish.git
cd banglish
npm install
npm run build
npm testLicense
MIT License - see LICENSE file for details.
Contact
- GitHub: https://github.com/ryanwtf88/banglish
- Documentation: https://ryanwtf88.github.io/banglish
- NPM Package: https://www.npmjs.com/package/banglish
- Email: [email protected]
Made with ❤️ by RY4N for Bangladeshi developers
