add Stmt::Struct and Expr::New

This commit is contained in:
2026-03-10 18:32:58 +01:00
parent 0dc130b85c
commit 316e60eedb
4 changed files with 54 additions and 4 deletions

View File

@@ -117,6 +117,7 @@ impl Analyzer {
}
self.functions.insert(name.lexeme.clone(), -1);
}
Stmt::Struct { name: _, fields: _ } => todo!(),
}
Ok(())
}
@@ -188,6 +189,7 @@ impl Analyzer {
Expr::AddrOf { op: _, expr } => {
self.analyze_expr(expr)?;
}
Expr::New(_) => {}
}
Ok(())
}