feat: Add support for expression and let statements.

This commit is contained in:
Jooris Hadeler
2026-01-14 20:46:56 +01:00
parent 2170be5204
commit 10fd3b6abf
3 changed files with 69 additions and 2 deletions

View File

@@ -58,3 +58,14 @@ pub enum BinaryOp {
Assign,
Member,
}
#[derive(Debug, PartialEq, Eq)]
pub enum Statement {
Let {
name: Box<str>,
name_span: Span,
value: Option<Expression>,
},
Expr(Expression),
}