The Banglish programming language. Write code with Bangla words in English letters. Everything else is in English.

dhorodekhaojodighurokajshreni
Codeplayground.be
Output

Keywords

Each keyword has one spelling, in small letters. If you misspell one, BE suggests the right word.

KeywordMeaningExample

Built-in functions

FunctionWhat it does

Apps and websites

The same code runs here (in the preview under the code) and on a computer with be run file.be, where apps open as real windows and websites at http://localhost:8000.

WordsWhat they do
dhoro w = janala("Title", 360, 300)a window for an app (width and height are optional)
w.lekha("Hello")show text
w.botam("Add", kaj () { ... })a button that runs a kaj when clicked
w.ghor("")an input box; read what was typed with .man()
w.sari()a row: the text, buttons and boxes added to it sit side by side
w.pechon("#16201b")the window's background color
w.chabi_chap(kaj (chabi_ti) { ... })run a kaj when a key is pressed: "5", "+", "Enter", "Backspace"...
w.pore(2, kaj () { ... })run a kaj after some seconds
x.bodlao("text") x.man()change the text of a text, button or box / read it
x.rong("red") x.pechon("yellow")text color / background color
x.akar(24) x.dane()text size / put the text on the right
dhoro site = website()a website
site.pata("/", kaj (r) { ferot "..." })a page (pata). A list or dictionary is sent as JSON
r.ongsho r.ghor r.prosnowhat the visitor sent: the :nam parts of the address, what they typed in a form's boxes, the ?x=1 part
site.fileguli("/static", "public")the CSS, JavaScript and other files for the website
uttor("Not found", 404)an answer with its own status code
site.chalao(8000)start the website

English words get a Banglish hint: print("hi") says Did you mean 'dekhao'?, server() says 'website'. Only on a computer: read and write files with file_porho and file_lekho, and use any Python library with python("name"). In your own web pages: load be-web.js and write BE inside <script type="text/be">.