The programming language
that speaks Assamese.
Asomiya is a programming language whose keywords, numbers and error messages are in Assamese. No Assamese keyboard? Type dhora, kowa and jodi instead. Learn to program in the language you think in.
Free and open source. Runs in your browser.
npm install -g asomiya
Small language.
Real programs.
Variables, conditions, loops and functions, written in Assamese script or in English letters. Every example on this site runs: press Try it.
ধৰা ভাষা = "অসমীয়া"
ধৰা বয়স = ২০
কোৱা("নমস্কাৰ, পৃথিৱী!")
কোৱা("এই প্ৰগ্ৰামটোৰ ভাষা: " + ভাষা)
যদি (বয়স >= ১৮) {
কোৱা("প্ৰাপ্তবয়স্ক")
} নহ'লে {
কোৱা("অপ্ৰাপ্তবয়স্ক")
}
নমস্কাৰ, পৃথিৱী! এই প্ৰগ্ৰামটোৰ ভাষা: অসমীয়া প্ৰাপ্তবয়স্ক
dhora bhaxa = "Oxomiya"
dhora boyox = 20
kowa("Nomoskar, prithibi!")
kowa("ei programor bhaxa: " + bhaxa)
jodi (boyox >= 18) {
kowa("praptoboyosko")
} nohole {
kowa("oprapto-boyosko")
}
Nomoskar, prithibi! ei programor bhaxa: Oxomiya praptoboyosko
Small enough to learn in an afternoon
A friendly language with a real interpreter behind it.
Assamese everywhere
Keywords, built-in functions and error messages are Assamese words. Even numbers:
১০ + ২০prints৩০.Or type in English letters
dhora,kowa,jodi. Several common spellings work for each word, because everyone types Assamese differently.Errors that teach
Every error has a code, says what went wrong in Assamese or English, and points at the exact spot. Typos get a “did you mean” hint.
A real language
Variables, conditions, loops, functions, recursion, closures, lists and input, run by a real lexer, parser and interpreter.
Runs anywhere
In the browser playground, in your terminal with the CLI and REPL, or inside a JavaScript app as a library.
Safe to run
Programs can’t touch your files or the network, and endless loops are stopped. Anyone’s code is safe to try.
One language, two ways to write it
Both tabs hold the same program. Pick the one you like and every example on the site follows your choice.
- Assamese script
- Write with an Assamese keyboard:
ধৰা,কোৱা,যদি. Numbers print as১২৩. - English letters
- Write
dhora,kowa,jodion any keyboard. Numbers print as123. - Both at once
- The two scripts work together in one program, so you can switch whenever you like.
// ১ ৰ পৰা ৫ লৈকে বৰ্গ
ধৰা ক = ১
যেতিয়ালৈকে (ক <= ৫) {
কোৱা(ক, "×", ক, "=", ক * ক)
ক = ক + ১
}
১ × ১ = ১ ২ × ২ = ৪ ৩ × ৩ = ৯ ৪ × ৪ = ১৬ ৫ × ৫ = ২৫
// squares from 1 to 5
dhora k = 1
jetialoike (k <= 5) {
kowa(k, "×", k, "=", k * k)
k = k + 1
}
1 × 1 = 1 2 × 2 = 4 3 × 3 = 9 4 × 4 = 16 5 × 5 = 25
Mistakes are part of learning
When something goes wrong, Asomiya tells you what happened, where, and often how to fix it.
How to read errorsকোৱা("নমস্কাৰ")
কোৱা(নাম)
নমস্কাৰ
runtime error [R001]: Undefined variable "নাম" (declare it first with "ধৰা")
--> program.asom:2:6
|
2 | কোৱা(নাম)
| ^^kowa("Nomoskar")
kowaa("Oxom")
Nomoskar
runtime error [R001]: Undefined variable "kowaa" — did you mean kowa (কোৱা)?
--> program.asom:2:1
|
2 | kowaa("Oxom")
| ^^^^^Start in three steps
Install
Install Node.js 20 or newer, then run
npm install -g asomiya.Write
Save your program in a file ending in
.asom.Run
Run it with
asomiya run hello.asom. Or skip all three and use the playground.
Made in Assam
Built by a small team and shaped by everyone who speaks Assamese. Suggest a better word, report a bug, or add a feature.