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)]