1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(clippy::too_many_arguments)]

use edlang_ir as ir;
use std::path::PathBuf;

use edlang_session::Session;
use ir::ProgramBody;

pub mod codegen;

pub fn compile(
    session: &Session,
    program: &ProgramBody,
) -> Result<PathBuf, Box<dyn std::error::Error>> {
    codegen::compile(session, program)
}