A Hindi-language implementation
Project description
Hindilang
Hindilang is a simple programming language that supports basic arithmetic operations and loops. It provides an easy-to-use syntax inspired by Hindi keywords for programming.
Features
Supports arithmetic operations (+, -, *, /, %).
Supports variable declaration using ank.
Printing is done using chhapna.
Supports loops (for, while,do while) and conditional statements (if-else).
Installation
To install Hindilang, use:
pip install hindilang
Example Usage
Below is an example demonstrating basic arithmetic operations in Hindilang:
import hindilang
if __name__ == "__main__":
code = r'''
// Arithmetic test code:
// loop test code:
// Declaration and assignment use "ank" (or a type keyword) and printing is done by "chhapna".
ank a = 10;
ank b = 5;
ank c = a + b;
chhapna(c);
ank i = 0;
keLiye (ank i = 0; i < 3; i = i + 1) {
chhapna(i);
}
ank j = 0;
karo {
chhapna(j);
j = j + 1;
}
jabTak (j <= 3);
ank k = 3;
jabTak (k > 0) {
chhapna(k);
k = k - 1;
}
ank a = 10;
agar (a > 5) {
chhapna(a);
} warna {
chhapna(0);
}
'''
hindilang.run_code(code)
Project details
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 hindilang-0.1.1.tar.gz.
File metadata
- Download URL: hindilang-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1fa85f911a4f1b9b17def7d24a4bb7b5e2846c5d3cb95d9e2720b7b5bc0024
|
|
| MD5 |
c863ebeb90e2e87e3b70b53aca54cf5f
|
|
| BLAKE2b-256 |
d91de49b3c61358c1f242957f37753401fbe3935f168d1b2e92fc4f8c6864043
|
File details
Details for the file hindilang-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hindilang-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c2f1ddd116c9d90fb76a0c6bc017cfe60d5b37f37199e8fa8993ecf8a708f5c
|
|
| MD5 |
3d8090ac0885b1f505b1703fef595e07
|
|
| BLAKE2b-256 |
1f89405ead0d66e634dde98cfb4e8aac4a4a07b859d23b0ee7a35cd6e45c68db
|