TheDan64 / limonite

[WIP] Compiler for the Limonite programming language.
Apache License 2.0
14 stars 3 forks source link
llvm programming-language

Build Status codecov

Limonite

This is a compiler for the Limonite programming language.

Limonite is a relatively basic programming language written in rust using LLVM as a backend.

Building

  1. Make sure you have installed all the dependencies.

    • Rust (Stable/Beta)
    • Cargo
    • git (optional)
    • LLVM == 10.0 (optional)
    • cmake (required for LLVM)
  2. Download and build Limonite.

    Run the following commands

    git clone https://github.com/TheDan64/limonite.git
    cd limonite
    cargo build

    Without LLVM dependency

    git clone https://github.com/TheDan64/limonite.git
    cd limonite
    cargo build --no-default-features

Working Features

Example:

var s = "Spam the world!"
var i = 10

>> NOTE: The following requires tab-indentation

while i > 0,
    i -= 1
    print(s)