salsa/examples/calc/main.rs
2024-07-17 09:25:04 -04:00

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:?}");
}