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
Edit the code and run it. Ctrl + Enter works too.

      

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.

WhatPythonNepLang
Printprint(x)vana(x)
If / elseif a > b: … else:yedi a > b { } natara { }
Whilewhile i < 10:jabasamma i < 10 { }
Forfor i in range(0, 10):ko_lagi i in 0..10 { }
Functiondef add(a, b): return a + bkaam add(a, b) { farkau a + b }
True / False / NoneTrue False Nonesacho jutho khali
And / or / notand or notra wa hoina
Inputinput()padha()
f-stringf"Hi {naam}""Hi ${naam}"
Classclass Dog(Animal):class Kukur(Janawar) { }

Read the language guide

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

All downloads and package managers