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

EnglishBanglaDescription
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

EnglishBanglaDescription
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

EnglishBanglaDescription
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

EnglishBanglaDescription
waitঅপেক্ষাSuspend the current function until a Future settles, then yield its value (or throw its rejection). See the Future page.

Literals

EnglishBanglaDescription
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.

EnglishBanglaDescription
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.