drim/drimc_rs/src/ast2ir.rs

11 lines
301 B
Rust
Raw Normal View History

2022-08-05 02:31:35 +00:00
//! Conversion of AST to intermediate representation.
use crate::ir::IR;
2022-08-05 16:44:31 +00:00
use crate::syntax::SyntaxTree;
2022-08-05 02:31:35 +00:00
/// Compiles an abstract syntax tree into intermediate representation; this assumes the code already
/// type-checks, and emits unoptimized IR.
pub fn ast2ir(_: SyntaxTree) -> IR {
todo!()
}