Asomiya (অসমীয়া)
v0.2.0Write, check and run code in Asomiya, the programming language in Assamese.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_asomiya Run Asomiya code
Runs an Asomiya program and returns what it printed, or the error with its code, line and message in English and Assamese. Programs are sandboxed (no files or network) and stop after 10 million steps. Pass input lines for সোধা (sodha) in `input`.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n". |
digits | string | Digits for printed numbers. "auto" (default): Assamese digits, or ASCII when the keywords are in English letters. |
input | array | Lines returned one by one by সোধা(); after the last one it returns খালী. |
lang | string | Language of error messages: "en" (English, default) or "as" (Assamese). |
check_asomiya Check Asomiya code
Checks an Asomiya program for spelling and syntax errors without running it. Errors that only happen while running (R… codes) need run_asomiya.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n". |
lang | string | Language of error messages: "en" (English, default) or "as" (Assamese). |
asomiya_to_python Show Asomiya code in Python
Translates an Asomiya program into an equivalent, runnable Python 3 program (same output). Useful to explain Asomiya to someone who knows Python.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n". |
digits | string | Digits for printed numbers. "auto" (default): Assamese digits, or ASCII when the keywords are in English letters. |
lang | string | Language of error messages: "en" (English, default) or "as" (Assamese). |
lookup_keyword Look up an Asomiya word
Finds keywords, built-in functions and type names by Assamese spelling (প্ৰতিটো), English-letter spelling (protito) or English meaning ("for each", "length"). An empty query lists everything.
| Parameter | Type | Description |
|---|---|---|
query * | string | A word in any script, or an English meaning. |
explain_error Explain an Asomiya error
Explains an Asomiya error code (such as P013 or R007): what it means in English and Assamese, an example that causes it, and how to fix it.
| Parameter | Type | Description |
|---|---|---|
code * | string | The error code, e.g. "R001". |