asomiya 0.2.0

Control flow

Installation

You can use Asomiya in the browser without installing anything. To run programs on your own computer, install the asomiya command.

Try it online

The playground runs the real interpreter in your browser. Nothing is sent to a server.

Requirements

You need Node.js 20 or newer. Check your version:

$ node --version

Install

$ npm install -g asomiya

The -g makes the asomiya command available everywhere. Check that it works:

$ asomiya --version

Watch out

asomiya: command not found? You probably installed without -g. Run npm install -g asomiya, or use it once without installing: npx asomiya.

Run a file

Create a file called hello.asom with this line:

কোৱা("নমস্কাৰ, অসম!")
Output
নমস্কাৰ, অসম!
kowa("Nomoskar, Oxom!")
Output
Nomoskar, Oxom!

Then run it:

$ asomiya run hello.asom

The interactive REPL

Type asomiya on its own to start the REPL, where each line runs as soon as you press Enter. It’s the fastest way to experiment. Type .help for help and .exit (or Ctrl+D) to quit.

$ asomiya

Update or uninstall

$ npm install -g asomiya@latest
$ npm uninstall -g asomiya

Writing code

Any text editor works. Save files as UTF-8 with the .asom extension. To type Assamese script, add an Assamese keyboard in your system settings, or write in English letters.