Skip to main content

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

hindilang-0.1.0.tar.gz (5.1 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for hindilang-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9c7f4e7e6d0e46a3396e7ca1bb3db75cf098fffa116cbdc0850ce1a1b5450d0
MD5 b8748f335bd12413f6f5070bc47b4253
BLAKE2b-256 15363c9875fb5f45c5f80c63f3e28f79c14756a759170bca146cee3cd0b94eca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hindilang-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for hindilang-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e05f60b2c5e745ed8981c8447d850a415404b9c6546dd6153f53b0960ab4b992
MD5 2475fdace64120e464c35eb2c5575e49
BLAKE2b-256 51389eb6ad256ed9397297fd516ae080d8986d79cd4de82c57badf029f1f4d99

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