Skip to main content

A Hindi-lalicense=,nguage implementation

Project description

Hindilang Hindilang is a simple programming language developed by Ujjwal Kumar Rajak and his team during their internship at Beasova. It supports basic arithmetic operations and loops, providing 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)

It is the part of their internship at Beasova, Ujjwal Kumar Rajak and his team contributed to the development of Hindilang to make coding more accessible by incorporating Hindi syntax into a programming language.

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

hindilang-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hindilang-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file hindilang-0.1.2.tar.gz.

File metadata

  • Download URL: hindilang-0.1.2.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

Hashes for hindilang-0.1.2.tar.gz
Algorithm Hash digest
SHA256 49529cdf171644dc4262aa8be7a62b42eeeb3b3abd93e2cac0f38fcab1d74bb3
MD5 b7e4a656eb531f398132684b008c8b99
BLAKE2b-256 1d2e86ea1d838d4d79e4ea47a5be0def3f776b1c91809ac34a99ad161e37aca8

See more details on using hashes here.

File details

Details for the file hindilang-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hindilang-0.1.2-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

Hashes for hindilang-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6936ad30c28310dbca4593571dd36c912ce86cccc5c14941fc2b69c43b0bbfef
MD5 7580e486210a46573b8d75c0ff03b23d
BLAKE2b-256 14e99f3521f14e44162e5b5c858baf76cc9b423592b19369b87b23831f86ce62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page