Working full parser
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user