summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:33:37 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 00:33:41 +0100
commit024fddd5003a4bf8e6547c7587a54a6f0d9a1e0f (patch)
tree6ed55ac412bec9d9a71c42450ffb1971196e3203
parentFeature: Add support for NOT unary expression (diff)
downloadinterpreter-024fddd5003a4bf8e6547c7587a54a6f0d9a1e0f.tar.gz
interpreter-024fddd5003a4bf8e6547c7587a54a6f0d9a1e0f.tar.bz2
interpreter-024fddd5003a4bf8e6547c7587a54a6f0d9a1e0f.zip
Parser: Remove unused expression node
-rw-r--r--src/parser.zig10
1 files changed, 0 insertions, 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,