Namaste Dai

A toy language
for the Soltis

Written in Typescript. Inspired by inside jokes. Built for the Nepali developer community.

$npm i -g nepdai
Playground
Initializing Solti Environment...
Loading...

Documentation

NepDai is built for the soltis, by the soltis. It's a dynamically typed toy language written for fun, keeping the Nepali tradition alive in code.

greeting

Namaste Dai (नमस्ते दाइ)

Namaste Dai

Every absolute banger of a program must start with this greeting. It initializes the NepDai environment.

Example Snippet
Namaste Dai
  lekh "Namaste Dai";
variables

Solti (सोल्टी)

solti a = 10;

Variables are your bros. Use 'solti' to define them.

Example Snippet
Namaste Dai
  solti a = "K chha bro?";
  lekh a;
output

Lekh (लेख)

lekh "message";

Want to talk? Use 'lekh' to print anything to the console.

Example Snippet
Namaste Dai
  lekh "Babbal Dai!";
conditionals

Yadi / Bhane / Natra (यदि / भने / नत्र)

yadi (condition) bhane { ... }

Logic control. If it happens (yadi), then do this (bhane), otherwise (natra) do that.

Example Snippet
Namaste Dai
  solti check = thik;
  yadi (check) bhane {
    lekh "Sahi ho!";
  } natra {
    lekh "Galat ho!";
  }
loops

Jaba Samma (जब सम्म)

jaba samma (condition) { ... }

Repeat your work until you are done. The classic while loop.

Example Snippet
Namaste Dai
  solti i = 1;
  jaba samma (i <= 5) {
    lekh "Iter:", i;
    i++;
  }

NepDai Version 1.0.0 (Release Candidate)

Crafted inSahilverse