asomiya 0.2.0

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

Start learning
Learn more

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.

hello.asom
ধৰা ভাষা = "অসমীয়া"
ধৰা বয়স = ২০

কোৱা("নমস্কাৰ, পৃথিৱী!")
কোৱা("এই প্ৰগ্ৰামটোৰ ভাষা: " + ভাষা)

যদি (বয়স >= ১৮) {
    কোৱা("প্ৰাপ্তবয়স্ক")
} নহ'লে {
    কোৱা("অপ্ৰাপ্তবয়স্ক")
}
Output
নমস্কাৰ, পৃথিৱী!
এই প্ৰগ্ৰামটোৰ ভাষা: অসমীয়া
প্ৰাপ্তবয়স্ক
dhora bhaxa = "Oxomiya"
dhora boyox = 20

kowa("Nomoskar, prithibi!")
kowa("ei programor bhaxa: " + bhaxa)

jodi (boyox >= 18) {
    kowa("praptoboyosko")
} nohole {
    kowa("oprapto-boyosko")
}
Output
Nomoskar, prithibi!
ei programor bhaxa: Oxomiya
praptoboyosko

Small enough to learn in an afternoon

A friendly language with a real interpreter behind it.

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, jodi on any keyboard. Numbers print as 123.
Both at once
The two scripts work together in one program, so you can switch whenever you like.
// ১ ৰ পৰা ৫ লৈকে বৰ্গ
ধৰা ক = ১
যেতিয়ালৈকে (ক <= ৫) {
    কোৱা(ক, "×", ক, "=", ক * ক)
    ক = ক + ১
}
Output
১ × ১ = ১
২ × ২ = ৪
৩ × ৩ = ৯
৪ × ৪ = ১৬
৫ × ৫ = ২৫
// squares from 1 to 5
dhora k = 1
jetialoike (k <= 5) {
    kowa(k, "×", k, "=", k * k)
    k = k + 1
}
Output
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
কোৱা("নমস্কাৰ")
কোৱা(নাম)
Output
নমস্কাৰ
runtime error [R001]: Undefined variable "নাম" (declare it first with "ধৰা")
  --> program.asom:2:6
  |
2 | কোৱা(নাম)
  |    ^^
kowa("Nomoskar")
kowaa("Oxom")
Output
Nomoskar
runtime error [R001]: Undefined variable "kowaa" — did you mean kowa (কোৱা)?
  --> program.asom:2:1
  |
2 | kowaa("Oxom")
  | ^^^^^

Start in three steps

  1. Install

    Install Node.js 20 or newer, then run npm install -g asomiya.

  2. Write

    Save your program in a file ending in .asom.

  3. Run

    Run it with asomiya run hello.asom. Or skip all three and use the playground.

Installation guide

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.