Git Product home page Git Product logo

kyanite's Introduction

Kyanite

Languages are cool! Compilers are cool! How do they work? That's why this project exists: Kyanite is a statically-typed, compiled programming language to learn more about how PLs are created. There are two backends: LLVM and a custom IR, kyir. The latter currently supports more language features, but is much less stable than the former.

Explore

(reqiures macOS on Apple Silicon)

Nix

Kyanite is available on FlakeHub:

nix build "https://flakehub.com/f/alythical/kyanite/[tag].tar.gz"
./result/bin/kyanite run path/to/program.kya

[tag] should be replaced by either:

  1. a version string matching 0.1.[commit-count] (where [commit-count] is the total number of commits in this repository)
  2. any other published release tag

The test suite verifies the programs in the examples directory function correctly. Feel free to experiment with other programs, but expect panics to occur, particularly with the kyir backend.

Note: By default, the kyir backend is used. Provide the --llvm flag to compile with LLVM instead.

Cargo

The Nix derivation is an instructive resource for compiling manually. In particular, note nativeBuildInputs (dependencies), buildPhase and installPhase, and the RUSTFLAGS and LLVM_SYS_150_PREFIX environment variables.


Other operating systems are currently unsupported.

Documentation

There's a reference and user guide here, and some working samples in the examples/ directory for both backends to demonstrate basic features.

kyanite's People

Contributors

cecelot avatar

Stargazers

geb avatar Nabeen Tiwaree avatar

Watchers

 avatar Nabeen Tiwaree avatar

kyanite's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.