2024-07-27 12:29:41 +00:00
|
|
|
use db::CalcDatabaseImpl;
|
2024-07-17 13:25:04 +00:00
|
|
|
use ir::{Diagnostic, SourceProgram};
|
2024-07-15 11:51:40 +00:00
|
|
|
use salsa::Database as Db;
|
2022-08-01 05:32:47 +00:00
|
|
|
|
2022-08-19 12:41:58 +00:00
|
|
|
mod compile;
|
2022-08-01 05:32:47 +00:00
|
|
|
mod db;
|
|
|
|
mod ir;
|
|
|
|
mod parser;
|
2022-08-19 12:41:58 +00:00
|
|
|
mod type_check;
|
2022-08-01 05:32:47 +00:00
|
|
|
|
2022-08-19 12:41:58 +00:00
|
|
|
pub fn main() {
|
2024-07-27 12:29:41 +00:00
|
|
|
let db: CalcDatabaseImpl = Default::default();
|
2022-09-03 21:48:24 +00:00
|
|
|
let source_program = SourceProgram::new(&db, String::new());
|
2022-08-19 12:41:58 +00:00
|
|
|
compile::compile(&db, source_program);
|
2024-07-17 13:25:04 +00:00
|
|
|
let diagnostics = compile::compile::accumulated::<Diagnostic>(&db, source_program);
|
2022-08-19 12:41:58 +00:00
|
|
|
eprintln!("{diagnostics:?}");
|
|
|
|
}
|