🌙 Comfortable and succinct programming language. Type-safe, expressive and to the point.
README.md

🌙 Lume #

Lume is a lightweight yet powerful programming language designed for simplicity and efficiency. It's syntax is intuitive, making it easy for developers to pick up and start building applications quickly.

Lume CLI example

Examples #

Here's a quick glimpse of Lume's capabilities:

A simple hello-world application:

import std::io (print)

fn main() {
  print("Hello, World!");
}

Types can also be defined with struct:

import std::io (print)

struct Counter {
  value: Int32;
}

impl Counter {
  pub fn new() -> Counter {
    return Counter { value: 0 };
  }

  pub fn increment(self) {
    self.value++;
  }

  pub fn decrement(self) {
    self.value--;
  }

  pub fn value(self) -> Int32 {
    return self.value;
  }
}

fn main() {
  let counter = Counter::new();
  counter.increment();

  print("Value: {0}", counter.value());

  counter.decrement();
  print("Value: {0}", counter.value());
}

License #

The repository defines the reference compiler for Lume and is licensed under the MIT License.