Skip to content

boucherlfg/lux

Repository files navigation

Lux Language

Lux is a dynamically-typed, interpreted scripting language with a clean C-like syntax. It supports first-class functions, closures, objects, lists, dicts, and error handling.

Documentation

Quick Start

// Hello, World!
print("Hello, World!")

// Variables
let name = "Alice"
let age = 30
print("Name: " + name + ", Age: " + str(age))

// Function
fun greet(person) {
    return "Hello, " + person + "!"
}
print(greet("World"))

// List + for loop
let fruits = ["apple", "banana", "cherry"]
for fruit in fruits {
    print(fruit)
}

Running Lux

dotnet run -- path/to/script.lux

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages