16 lines
337 B
Rust
16 lines
337 B
Rust
use crate::common::diagnostics::DiagnosticBundle;
|
|
use crate::ir;
|
|
use std::path::Path;
|
|
|
|
use crate::common::files::FileManager;
|
|
|
|
pub trait Frontend {
|
|
fn language(&self) -> &'static str;
|
|
|
|
fn compile_to_ir(
|
|
&self,
|
|
entry: &Path,
|
|
file_manager: &mut FileManager,
|
|
) -> Result<ir::Module, DiagnosticBundle>;
|
|
}
|