4 releases
0.0.12 | Jul 26, 2024 |
---|---|
0.0.11 | May 28, 2024 |
0.0.10 | May 2, 2024 |
0.0.1 | May 1, 2024 |
#870 in Development tools
33 downloads per month
Used in 3 crates
17KB
448 lines
Frontend [lib]
This is the frontend crate. It is the part of the compiler responsible for generating an intermediary representation. Like most of the other -end crates in Citadel this is a pure api for providing the high-level intermediary representation and utilities for generating it. https://github.com/Isible/citadel/tree/main/crates/frontend
Using the frontend
For now you will have to look at how we use the frontend to generate IR in test-lang.
lib.rs
:
Citadel - frontend
The frontend crate of the citadel project
For information on what exactly citadel is you should visit our github-repository
This crate mainly provides an api for generating an Intermediary Representation
in the form of an Abstract Syntax tree. Generating this tree is most easily achievable
through crate::ir_gen
. This provides a simple struct for generating the IR.
However, since the IRGenerator is just a vector under the hood you can also easily implement your own.
For help we recommend looking at our own implementation: crate::ir_gen