Asomiya (অসমীয়া)

v0.2.0
io.github.d43ash1sh/asomiya Checked 15 hours ago Published 1 day ago

Write, 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`.

ParameterTypeDescription
code *stringAsomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n".
digitsstringDigits for printed numbers. "auto" (default): Assamese digits, or ASCII when the keywords are in English letters.
inputarrayLines returned one by one by সোধা(); after the last one it returns খালী.
langstringLanguage 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.

ParameterTypeDescription
code *stringAsomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n".
langstringLanguage 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.

ParameterTypeDescription
code *stringAsomiya source code, in Assamese script (ধৰা ক = ৫) or English letters (dhora k = 5). Use real line breaks, not "\n".
digitsstringDigits for printed numbers. "auto" (default): Assamese digits, or ASCII when the keywords are in English letters.
langstringLanguage 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.

ParameterTypeDescription
query *stringA 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.

ParameterTypeDescription
code *stringThe error code, e.g. "R001".