Skip to content

BastianAsmussen/Lithium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

Statistics

Build and Test
Code Size
License

Table of Contents

Compiling

To compile the Lithium compiler, we use Cargo (get it here).

$ cargo build --release --workspace

Installing

To install the compiler, use the following command:

$ cargo install --path .

Testing

To run the tests, use the following command:

$ cargo test --workspace

Benchmarking

To run the benchmarks, use the following command:

$ cargo bench --workspace

Usage

To compile a Lithium program, use the following command:

$ lithium --file </path/to/file.lt>

Syntax

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"));

Contributing

If you want to contribute to Lithium, please read the CONTRIBUTING file for more information.

About

Lithium - A simple programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages