Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/garritfra/qbe-rs
- Owner: garritfra
- License: other
- Created: 2022-02-08T21:09:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T19:55:10.000Z (over 1 year ago)
- Last Synced: 2024-09-17T16:18:27.335Z (4 months ago)
- Topics: compiler, ir, qbe, rust
- Language: Rust
- Homepage: https://c9x.me/compile
- Size: 65.4 KB
- Stars: 77
- Watchers: 4
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
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.