feat(furc/parser): parse binary and unary ops

This commit is contained in:
2026-08-07 11:24:52 +02:00
parent 2d40b9337c
commit 79b6b9742d
4 changed files with 106 additions and 8 deletions
+5 -5
View File
@@ -140,9 +140,9 @@ struct binary_op_expr_node final : public expr_node {
expr_type_e expr_type() const override { return BinaryOp; }
expr_node* lhs;
expr_node* rhs;
binary_op_type type;
expr_node* lhs = nullptr;
expr_node* rhs = nullptr;
binary_op_type type = Add;
};
struct unary_op_expr_node final : public expr_node {
@@ -163,8 +163,8 @@ struct unary_op_expr_node final : public expr_node {
expr_type_e expr_type() const override { return UnaryOp; }
expr_node* lhs;
unary_op_type type;
expr_node* lhs = nullptr;
unary_op_type type = Positive;
};
class lit_node : public expr_node {