Introduction to Bnlang

Bnlang is a modern programming language and runtime designed to make coding accessible without sacrificing engineering rigor. You can write code in English, Bangla, or both at once — the parser treats them as a single language.

Bnlang is a native language with its own tree-walking interpreter written in modern C++. There is no transpilation step, no JavaScript engine, no shim layer — just bnl running your .bnl files directly.


Why Bnlang?

  • Accessibility — makes programming approachable for people more comfortable in Bangla.
  • Inclusivity — lowers the language barrier in software development.
  • Predictability — small, regular syntax. Fixed-arity functions, no surprising overloads.
  • Batteries included — file I/O, HTTP, WebSocket, SQLite/PostgreSQL/MongoDB, templating, crypto, and more in the standard library.
  • Extensible — drop a .dll / .so / .dylib next to a bnl.json and import it like any other module. Plugins use a single drop-in C header — write them in C, C++, Rust, Go, or any C-ABI language.

Example: Hello World

print("Hello, World!");

A Slightly Larger Taste

function greet(name) {
    return "Hello, " + name + "!";
}

var people = ["Alice", "Bob", "Charlie"];
for (var p of people) {
    print(greet(p));
}

Summary

Bnlang is a step towards breaking the language barrier in technology. It pairs a clean, dual-language syntax with a native C++ runtime and a practical standard library, so beginners can learn in their own language and professionals can ship real systems.