mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 12:16:25 +00:00
16 lines
409 B
Rust
16 lines
409 B
Rust
use ir::{Diagnostic, SourceProgram};
|
|
use salsa::Database as Db;
|
|
|
|
mod compile;
|
|
mod db;
|
|
mod ir;
|
|
mod parser;
|
|
mod type_check;
|
|
|
|
pub fn main() {
|
|
let db = db::Database::default();
|
|
let source_program = SourceProgram::new(&db, String::new());
|
|
compile::compile(&db, source_program);
|
|
let diagnostics = compile::compile::accumulated::<Diagnostic>(&db, source_program);
|
|
eprintln!("{diagnostics:?}");
|
|
}
|