CLI and REPL
Usage
asomiya run <file> [options] run a program
asomiya [repl] [options] start the REPL (default)
asomiya --version | --helpOptions
| Option | Meaning | Default |
|---|---|---|
-l, --lang <as|en> | Language of error messages | as |
--ascii-digits | Always print numbers with 0-9 | auto |
--assamese-digits | Always print numbers with ০-৯ | auto |
--max-steps <n> | Execution step budget (0 = unlimited) | 10000000 |
--max-depth <n> | Maximum function call depth | 500 |
By default (“auto”), programs written in Assamese script print ১২৩ and programs written in English letters print 123.
Exit codes
| Code | Meaning |
|---|---|
0 | The program finished |
1 | The program had an error |
2 | Wrong usage, or the file couldn’t be read |
REPL
A complete statement runs as soon as you press Enter. An open { or ( waits for more lines. সোধা reads the next line you type.
| Command | Effect |
|---|---|
.সহায় / .help | Show help |
.বাতিল / .cancel | Discard an unfinished multi-line input |
.প্ৰস্থান / .exit, Ctrl+D | Quit |
| Ctrl+C | Quit immediately, even while a program runs |
Note
The REPL has no arrow-key history on purpose: line editors redraw the line using column arithmetic that doesn’t match how terminals draw Assamese, which garbles the screen.