jagajaga / syava-lang

Syava language compiler to llvm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sayava language.

Супер

Язык

Высокой

Актуальности

About

Syava-lang is a compiler project. The result of compilation is LLVM's IR.

Current features:

  • let
  • if
  • Numbers
  • Void
  • Pointers
  • &
  • Return last statement
  • Hindley-Milner type inference
  • LLVM optimizations
  • Local variables Etc

Building

You will need rust-nightly and cargo. After you obtain them for your distro, simply run

cargo update
cargo build

Testing

Go to tests directory and run test.sh

Examples

See test.sva and src/tests.rs

About

Syava language compiler to llvm


Languages

Language:Rust 99.6%Language:Nix 0.2%Language:Shell 0.1%