Class AST

This commit is contained in:
2026-05-05 18:30:23 +02:00
parent e7bfd23eb5
commit 1f7db7ff1a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -74,6 +74,12 @@ pub enum TopLevelKind {
return_type: TypeExpr,
body: Block,
},
ClassDecl {
export: bool,
name: String,
fields: Vec<VarDeclStmt>,
constructor: (ParamList, Block),
},
}
#[derive(Debug, Clone, Serialize)]