
My Own Programming Language
I built my own programming language from scratch (and it took me 2 months) Ever since I started learning to code, I had one dream that always felt too big: what if I built my own programming language? Not a toy. Not a calculator. A real language — with variables, functions, classes, error handling, and its own package manager. So I did it. And it only took me about 2 months. What is Luz? Luz (the Spanish word for light ) is a lightweight interpreted programming language written in Python. It's designed to be simple, readable, and easy to learn. This is valid Luz code: name = listen("What is your name? ") write($"Hello {name}!") for i = 1 to 5 { if even(i) { write($"{i} is even") } else { write($"{i} is odd") } } It has: Dynamic typing Format strings — $"Hello {name}!" Classes and inheritance Lambdas — fn(x) => x * 2 Error handling — attempt / rescue A module system — import "utils.luz" A package manager called Ray A standalone Windows installer (no Python required) Full documentation w
Continue reading on Dev.to Python
Opens in a new tab




