Working full parser

This commit is contained in:
2026-04-13 14:30:22 +02:00
parent 6b908754e3
commit 3758305a23
4 changed files with 248 additions and 34 deletions
+7
View File
@@ -112,6 +112,7 @@ pub enum Expression {
Call(Box<CallExpr>),
FieldAccess(Box<FieldAccess>),
StructInit(Box<StructInit>),
ArrayLiteral(Box<ArrayLiteral>),
}
#[derive(Debug, Clone)]
@@ -178,3 +179,9 @@ pub enum TypeExpr {
Array(Box<TypeExpr>),
Optional(Box<TypeExpr>),
}
#[derive(Debug, Clone)]
pub struct ArrayLiteral {
pub elements: Vec<Expression>,
pub span: Span,
}