Programming in the words you already speak.
NepLang is a programming language with Nepali keywords. Write vana to print, yedi for if, kaam for a function.
- vanaprint
- yediif
- nataraelse
- jabasammawhile
- ko_lagifor
- kaamfunction
- farkaureturn
- sachotrue
- juthofalse
- padharead input
If you know Python, you already know most of it
Files end in .np and run like Python files: neplang hello.np. Blocks use { } instead of indentation.
| What | Python | NepLang |
|---|---|---|
print(x) | vana(x) | |
| If / else | if a > b: … else: | yedi a > b { } natara { } |
| While | while i < 10: | jabasamma i < 10 { } |
| For | for i in range(0, 10): | ko_lagi i in 0..10 { } |
| Function | def add(a, b): return a + b | kaam add(a, b) { farkau a + b } |
| True / False / None | True False None | sacho jutho khali |
| And / or / not | and or not | ra wa hoina |
| Input | input() | padha() |
| f-string | f"Hi {naam}" | "Hi ${naam}" |
| Class | class Dog(Animal): | class Kukur(Janawar) { } |
A small language with real tools
Errors you can understand
Every error names the line, points at the exact spot, and says how to fix it: Did you mean 'umar'?
Checked before it runs
neplang check finds undefined names, wrong argument counts and type mistakes without running anything.
Classes and types
Classes, inheritance, interfaces, typed variables like int umar = 22, and a standard library for math, text, arrays and files.
From script to program
Run a file directly, try lines in the REPL, or turn a program into a fast native executable with neplang build.
Install in one line
Windows, macOS and Linux are all supported. Nothing else is needed to run programs.
irm https://raw.githubusercontent.com/charitraa/NepLang/main/install.ps1 | iex