Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/garritfra/qbe-rs

QBE IR in natural Rust data structures
https://github.com/garritfra/qbe-rs

compiler ir qbe rust

Last synced: about 8 hours ago
JSON representation

QBE IR in natural Rust data structures

Awesome Lists containing this project

README

        

# QBE IR for Rust

[![](https://img.shields.io/crates/v/qbe.svg)](https://crates.io/crates/qbe)
[![docs](https://img.shields.io/badge/docs-docs.rs-blue.svg)](https://docs.rs/qbe)
[![Crates.io](https://img.shields.io/crates/l/qbe)](https://github.com/garritfra/qbe-rs/blob/main/COPYRIGHT)

https://c9x.me/compile/

This crate seeks to provide a Rust-y representation of [QBE
IR](https://c9x.me/compile/). It can be used for code generation of compilers. A
way to parse existing IR is planned.

## Getting Started

This crate is on [crates.io](https://crates.io/crates/qbe), so you can simply
add it as a dependency in your Cargo.toml and off you go.

If you don't know where to get started, check out the `hello_world` example in
the `examples/` directory.

## Projects using this crate

This crate is used by the [Antimony](https://github.com/antimony-lang/antimony)
project. Check out the [QBE
generator](https://github.com/antimony-lang/antimony/blob/master/src/generator/qbe.rs)
to see how they are using it.

## License

The `qbe` crate is distributed under either of

- [Apache License, Version 2.0](LICENSE-APACHE)
- [MIT license](LICENSE-MIT)

at your option.