Written in Typescript. Inspired by inside jokes. Built for the Nepali developer community.
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.
Every absolute banger of a program must start with this greeting. It initializes the NepDai environment.
Namaste Dai
lekh "Namaste Dai";Variables are your bros. Use 'solti' to define them.
Namaste Dai
solti a = "K chha bro?";
lekh a;Want to talk? Use 'lekh' to print anything to the console.
Namaste Dai
lekh "Babbal Dai!";Logic control. If it happens (yadi), then do this (bhane), otherwise (natra) do that.
Namaste Dai
solti check = thik;
yadi (check) bhane {
lekh "Sahi ho!";
} natra {
lekh "Galat ho!";
}Repeat your work until you are done. The classic while loop.
Namaste Dai
solti i = 1;
jaba samma (i <= 5) {
lekh "Iter:", i;
i++;
}