asomiya 0.2.0

CLI and REPL

Usage

asomiya run <file> [options]   run a program
asomiya [repl] [options]       start the REPL (default)
asomiya --version | --help

Options

OptionMeaningDefault
-l, --lang <as|en>Language of error messagesas
--ascii-digitsAlways print numbers with 0-9auto
--assamese-digitsAlways print numbers with ০-৯auto
--max-steps <n>Execution step budget (0 = unlimited)10000000
--max-depth <n>Maximum function call depth500

By default (“auto”), programs written in Assamese script print ১২৩ and programs written in English letters print 123.

Exit codes

CodeMeaning
0The program finished
1The program had an error
2Wrong 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.

CommandEffect
.সহায় / .helpShow help
.বাতিল / .cancelDiscard an unfinished multi-line input
.প্ৰস্থান / .exit, Ctrl+DQuit
Ctrl+CQuit 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.