Mussel is an interpreted, dynamically typed programming language written in Rust. It was designed as a simple and flexible language with a focus on easy-to-read syntax and powerful expression evaluation. Mussel supports data types, variable bindings, functions, closures, control flow constructs (such as if
and for
), and even string interpolation. There is a Standard Library too!
Mussel's interpreter is programmed in Rust, which means that Mussel offers the same advantages as Rust such as code execution speed and security. In addition, Mussel's syntax is extremely simple, comparable to Python's. This union makes Mussel like a language "safe and fast like Rust and easy to use like Python".
You can find a detailed tutorial to learn how Mussel works here.
For detailed information on the individual libraries of the Standard Library, you can consult the dedicated file here.
You can find some examples of Mussel code in the examples folder.
-
Install Rust:
Rust is required to build Mussel code. You can download it from rust-lang.org.
-
Clone the repo:
git clone https://github.com/gianndev/mussel.git cd mussel
-
Compile the Rust code:
To build the release version of Mussel you can use the Makefile just typing
make release
-
Run Mussel code:
Once you've created a file with the .mus file extension (the official extension of Mussel) you can run the Mussel code typing in the terminal
make run FILE=path/to/the/file.mus
Make sure to insert the correct path of the Mussel file
The current latest version of Mussel is 0.2.0
Mussel is released under the Apache License 2.0