A Nepali-language implementation
Project description
Nepalilang
Nepalilang is a simple programming language developed by Ujjwal Kumar Rajak and Jigmi Bhutia during their internship at Beasova. It supports basic arithmetic operations, loops, and conditional statements, providing an easy-to-use syntax inspired by the Nepali language.
Features Supports arithmetic operations (+, -, *, /, %). Supports variable declaration using anka. Printing is done using dekhau. Supports loops (for, while, do while) and conditional statements (if-else).
Installation To install Nepalilang, use:
pip install nepalilang
Below is an example demonstrating basic arithmetic operations and control structures in Nepalilang:
import nepalilang
if __name__ == "__main__":
code = r'''
anka a = 10;
anka b = 5;
anka c = a + b;
dekhau(c);
anka i = 0;
laagi (anka i = 0; i < 3; i = i + 1) {
dekhau(i);
}
anka j = 0;
gara {
dekhau(j);
j = j + 1;
}
samma (j <= 3);
anka k = 3;
samma (k > 0) {
dekhau(k);
k = k - 1;
}
anka a = 10;
yadi (a > 5) {
dekhau(a);
} natra {
dekhau(0);
}
'''
nepalilang.run_code(code)
As part of their work at Beasova, Ujjwal kumar Rajak and Jigmi Bhutia contributed to the development of Nepalilang to make coding more accessible by incorporating Nepali syntax into a programming language.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nepalilang-0.2.1.tar.gz.
File metadata
- Download URL: nepalilang-0.2.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1519615c49dffb990f70af0eef905f1c45152236b06ada3b18b39d734d9754e7
|
|
| MD5 |
096249de4bbedd2bb8366c7fc4dd340e
|
|
| BLAKE2b-256 |
5b2bec101dfe9c7b63d93f558b9e6113a0dd59a34add9685e376e6e4f431c934
|
File details
Details for the file nepalilang-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nepalilang-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b515097c6e362393c7b11cf9368d731504564c0dea1667de606358c0254e22
|
|
| MD5 |
8a348ea153bc211a60756deed16625b2
|
|
| BLAKE2b-256 |
843fbe3f74c818aff4a53216298ea66aae06c09b5457f1c8790e8658aaa973ff
|