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: 4 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T19:55:10.000Z (almost 2 years ago)
- Last Synced: 2024-09-17T16:18:27.335Z (10 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://crates.io/crates/qbe)
[](https://docs.rs/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.## Contributing
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
## 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.