From 024fddd5003a4bf8e6547c7587a54a6f0d9a1e0f Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 21 Jan 2025 00:33:37 +0100 Subject: Parser: Remove unused expression node --- src/parser.zig | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/parser.zig b/src/parser.zig index f574161..4b64303 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -12,7 +12,6 @@ const NodeType = enum { ASSIGNMENT_STATEMENT, FUNCTION_CALL_STATEMENT, IF_STATEMENT, - EXPRESSION, EQUALITY_EXPRESSION, ADDITIVE_EXPRESSION, UNARY_EXPRESSION, @@ -41,15 +40,6 @@ pub const Node = union(NodeType) { condition: *Node, statements: []*Node, }, - EXPRESSION: union(enum) { - //TODO: Why do we need this - ADDITIVE_EXPRESSION: struct { - expression: *Node, - }, - FUNCTION_DEFINITION: struct { - expression: *Node, - }, - }, EQUALITY_EXPRESSION: struct { lhs: *Node, rhs: *Node, -- cgit 1.4.1