This is a simple programming language written in Rust for learning purposes. It is a statically typed, compiled language with a syntax very similar to Rust.
To compile the Lithium compiler, we use Cargo (get it here).
$ cargo build --release --workspace
To install the compiler, use the following command:
$ cargo install --path .
To run the tests, use the following command:
$ cargo test --workspace
To run the benchmarks, use the following command:
$ cargo bench --workspace
To compile a Lithium program, use the following command:
$ lithium --file </path/to/file.lt>
The syntax is very simple. Here is an example program:
// This is a comment.
fn greet(name: str) -> str {
return "Hello, " + name + "!";
}
print(greet("World"));
If you want to contribute to Lithium, please read the CONTRIBUTING file for more information.