From 020eebdaba7e471bedb545981fe14a257bb421b6 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 17 May 2026 02:21:12 +0200 Subject: [PATCH] Updated expr ast --- parser/src/ast/expr.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parser/src/ast/expr.rs b/parser/src/ast/expr.rs index fc54780..bee7250 100644 --- a/parser/src/ast/expr.rs +++ b/parser/src/ast/expr.rs @@ -28,6 +28,11 @@ pub enum Expression { prefixes: Vec, postfixes: Vec, }, + Binary { + lhs: Box, + op: BinaryOp, + rhs: Box, + }, } #[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)]