Writing in English letters
Every keyword and built-in function also has spellings in English letters, the way people type Assamese in chats. You don’t need an Assamese keyboard.
dhora naam = "Rita"
jodi (naam != "") {
kowa("Nomoskar, " + naam)
} nohole {
kowa("naam nai")
}
Nomoskar, Rita
There is no single “correct” spelling
Assamese has no standard way of writing it in English letters. কোৱা can be kowa, kuwa, kua or koa. Many speakers write স as x (as in Oxom for অসম). So Asomiya accepts several common spellings for every word. The first one in each list is the preferred spelling.
| Assamese | English letters | Meaning |
|---|---|---|
ধৰা | dhora, dhara | let (variable) |
কোৱা | kowa, kuwa, kua, koa | |
যদি | jodi, zodi, jadi | if |
নহ'লে | nohole, noh'le, nohle, nhole … | else |
যেতিয়ালৈকে | jetialoike, zetialoike, jetiyaloike … | while |
ৰখা | rokha, rakha | break |
আগবাঢ়া | aagbara, agbara … | continue |
ফাংচন | fangchon, phangchon, fanchon | function |
ঘূৰাইদিয়া | ghuraidiya, ghuraidia | return |
সঁচা / মিছা | xosa, hosa, sosa … / misa, micha … | true / false |
খালী | khali, khaali | null |
আৰু / বা | aru / ba | and / or |
The complete list, including built-in functions, is in the keyword reference.
Three rules
- Lower-case only.
jodimeans যদি, butJodiis an ordinary name you can use for a variable. - Mix freely. Assamese script and English letters work in the same program.
- Keywords are reserved. You can’t name a variable
baormisa, because those are keywords.
Typos get a hint
If a word is close to a keyword but not quite right, the error suggests what you meant:
dhora x = 5
jodii (x > 1) {
kowa("dangor")
}
syntax error [P007]: Expected a line break or ";" after the statement, but found "{" — did you mean jodi (যদি)?
--> program.asom:2:15
|
2 | jodii (x > 1) {
| ^Output in English letters
A program whose keywords are in English letters also prints in English letters: numbers as 123 and true/false/null as xosa, misa, khali. Programs in Assamese script print ১২৩, সঁচা, মিছা, খালী.