lang: rework ast structure

This commit is contained in:
Schrottkatze 2024-04-07 00:55:12 +02:00
commit b6e304fa78
No known key found for this signature in database
5 changed files with 209 additions and 164 deletions

View file

@ -64,6 +64,7 @@ impl<'filename, 'tokens, 'src> ErrorCollector<'filename, 'tokens, 'src> {
for ((file, stage), errs) in raw_errors.into_iter() {
for err in errs {
eprintln!("e: {err:?}");
Report::build(ariadne::ReportKind::Error, file, err.span().start)
.with_message(format!("error at stage {stage:?}, {:?}", err.reason()))
.with_label(