Updated expr ast

This commit is contained in:
2026-05-17 02:21:12 +02:00
parent 675e357297
commit 020eebdaba
+5 -1
View File
@@ -28,6 +28,11 @@ pub enum Expression {
prefixes: Vec<Prefix>,
postfixes: Vec<Postfix>,
},
Binary {
lhs: Box<Expression>,
op: BinaryOp,
rhs: Box<Expression>,
},
}
#[derive(Debug, Clone, Serialize)]
@@ -56,7 +61,6 @@ pub enum Postfix {
MacroCall(String),
StructCall(Vec<(Identifier, Expression)>),
Index(Expression),
Binary(BinaryOp, Expression),
}
#[derive(Debug, Clone, Serialize)]