Skip to main content

A Nepali-language implementation

Project description

Nepalilang

Nepalilang is a simple programming language that supports basic arithmetic operations and loops. It provides an easy-to-use syntax inspired by Nepali keywords for programming.

Features

Supports arithmetic operations (+, -, *, /, %).

Supports variable declaration using ank.

Printing is done using dekhau.

Supports loops (for, while,do while) and conditional statements (if-else).

Installation

To install Nepalilang, use:

pip install nepalilang

Example Usage

Below is an example demonstrating basic arithmetic operations in nepalilang:

import nepalilang

if __name__ == "__main__":
code = r"""
anka a = 10;
anka b = 5;
anka c = a + b;
Dekhau(c);

anka d = c - b;
Dekhau(d);

anka e = d * b;
Dekhau(e);

anka f = e / b;
Dekhau(f);

anka g = e % b;
Dekhau(g);
"""

nepalilang.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

nepalilang-0.2.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

nepalilang-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file nepalilang-0.2.0.tar.gz.

File metadata

  • Download URL: nepalilang-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for nepalilang-0.2.0.tar.gz
Algorithm Hash digest
SHA256 53727026c3b1a4fc41bb0cdd2b7718767093840e055bda85735188a3e79c8061
MD5 e1e4f9d2820809d064ac9d3fa7ae509d
BLAKE2b-256 f5d92d31d0501f117da64f30e1c4e7c07cd32e6870838de88e627291d708e08a

See more details on using hashes here.

File details

Details for the file nepalilang-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nepalilang-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for nepalilang-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c8d1adedac1092ad0029905f44169b585db85c776c14fe744e81b5e3bcff8a
MD5 9cdf8f07d5b5e75e1a71a35cba1474a6
BLAKE2b-256 b388ba24c84688405960a24b0446067b88d449ed39cbfc7be06855f19d599165

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