Keywords
Bnlang has a small, fixed set of keywords. Each English form has a Bangla synonym; both parse to the same token, so the language semantics are identical regardless of which form you use.
For the full alias catalog — keywords, globals, and module names — see Bilingual aliases.
Declarations
| English | Bangla | Description |
|---|---|---|
var | চলক | Declare a variable. |
function | ফাংশন | Define a function. |
class | শ্রেণী | Define a class. |
extends | প্রসারিত | Inherit from a parent class. |
super | উপরের | Refer to the parent class. |
import | আমদানি | Import a module or library. |
as | যেমন | Bind an imported module to a local name. |
Control flow
| English | Bangla | Description |
|---|---|---|
if | যদি | Conditional branching. |
else | নাহলে | Alternative branch when condition fails. |
for | প্রতি | Iterate over a list. |
of | এর | Used inside for ... of. |
while | যতক্ষণ | Loop while a condition holds. |
switch | বিকল্প | Multi-way branching on a value. |
case | অবস্থা | A branch inside switch. |
default | অন্যথায় | Fallback branch inside switch. |
break | থামুন | Exit the nearest loop or switch. |
continue | চলুন | Skip to the next iteration of the nearest loop. |
return | ফেরত | Return a value from a function. |
Error handling
| English | Bangla | Description |
|---|---|---|
try | চেষ্টা | Begin a block that may throw. |
catch | ধরুন | Handle a thrown value. |
finally | অবশেষে | Run after try/catch, throw or not. |
throw | নিক্ষেপ | Raise an error. |
Asynchronous
| English | Bangla | Description |
|---|---|---|
wait | অপেক্ষা | Suspend the current function until a Future settles, then yield its value (or throw its rejection). See the Future page. |
Literals
| English | Bangla | Description |
|---|---|---|
true | সত্য | Boolean true. |
false | মিথ্যা | Boolean false. |
null | নাই | The single null value. |
Logical word operators
These look like keywords but behave as operators. See the Operators page.
| English | Bangla | Description |
|---|---|---|
and | এবং | Logical and. |
or | অথবা | Logical or. |
not | না | Logical not. |
What's not a keyword
If you're coming from JavaScript or Python, these are not in Bnlang:
let, const, do, async, await, yield, typeof, instanceof, in, void, delete, this, new, with, debugger, static.
Note: Bnlang uses wait (no async marker) for asynchronous values — see the Future page.