Skip to main content

Welcome to Minilux

minilux-icon

Minilux is a minimal programming language designed for simplicity. Written in Rust, it provides an easy-to-understand syntax perfect for educational purposes or everyday tasks.

Features​

  • πŸš€ Simple Syntax - Easy to learn, PHP-like variable syntax with $
  • πŸ“¦ Dynamic Typing - Support for integers, strings, and arrays
  • πŸ”„ Control Flow - if/elseif/else statements and while loops
  • ⚑ Built-in Functions - printf, array manipulation, sockets, and more
  • πŸ”Œ Shell Integration - Execute system commands directly
  • 🌐 Network Support - Built-in TCP socket operations
  • πŸ› οΈ User-Defined Functions - Create your own functions
  • ⏱️ Sleep Function - Add delays to your scripts

Quick Example​

#!/usr/bin/env minilux
# Simple greeting script
$name = "World"
printf("Hello, ", $name)

# Calculate factorial
$n = 5
$result = 1

while ($n > 0) {
$result = $result * $n
dec $n - 1
}

printf("Factorial: ", $result)

Why Minilux?​

Minilux was created as a learning project to understand:

  • Language design and implementation
  • Lexical analysis and parsing
  • Interpreter construction
  • Rust programming

It's perfect for:

  • πŸ“š Learning about programming language design
  • πŸŽ“ Teaching basic programming concepts
  • βš™οΈ Simple automation scripts
  • πŸ§ͺ Experimental projects

Next Steps​


Author: Alexia Michelle <alexia@minilux.org>
License: MPL 2.0
Repository: github.com/minilux-org/minilux