Skip to content

gianndev/mussel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mussel

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!

Why should I choose Mussel?

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".

Tutorial

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.

Practical Example

You can find some examples of Mussel code in the examples folder.

How to run Mussel code?

  1. Install Rust:

    Rust is required to build Mussel code. You can download it from rust-lang.org.

  2. Clone the repo:

    git clone https://github.com/gianndev/mussel.git
    cd mussel
    
  3. Compile the Rust code:

    To build the release version of Mussel you can use the Makefile just typing

    make release
    
  4. 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

Version

The current latest version of Mussel is 0.2.0

License

Mussel is released under the Apache License 2.0