a bunch of stuff mostly

This commit is contained in:
nora 2023-05-22 20:44:18 +02:00
parent 56e7f77a0d
commit b9a2f939c4
29 changed files with 734 additions and 345 deletions

View file

@ -1,6 +1,20 @@
#![allow(dead_code)] // TODO: no
#![warn(rust_2018_idioms)]
mod hir;
mod ir;
mod lower;
mod ty;
pub use lower::lower_translation_unit;
use parser::Span;
pub struct Error {
msg: String,
span: Span,
}
impl Error {
pub fn new(msg: String, span: Span) -> Self {
Self { msg, span }
}
}