From d6688321f204b817da6072a198a2534e3aa97504 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 7 Aug 2024 17:09:30 -0500 Subject: All unit tests pass --- src/symtable.zig | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/symtable.zig') diff --git a/src/symtable.zig b/src/symtable.zig index cc041c5..60e871c 100644 --- a/src/symtable.zig +++ b/src/symtable.zig @@ -161,7 +161,6 @@ pub const Populator = struct { const table: *SymbolTable = stmt.symtable; switch (stmt.kind) { .defVar => |variable| { - std.debug.print("Populated {s}\n", .{variable.ident.ident}); const symbol: Symbol = try self.buildValueSymb( table, if (variable.expr.typ) |typ| typ else pars.TypeIdent{ .ident = "i32", .list = false }, @@ -175,15 +174,12 @@ pub const Populator = struct { if (value.expr.typ) |typ| typ else pars.TypeIdent{ .ident = "i32", .list = false }, false, ); - std.debug.print("Populated {s}\n", .{value.ident.ident}); if (!try table.insert(value.ident.ident, symbol)) return error.FailedToInsert; }, .block => { const children = try stmt.children(self.allocator); defer self.allocator.free(children); - std.debug.print("Populated Block\n", .{}); for (children) |child| { - std.debug.print("Child: {d}\n", .{child.Stmt.id}); try self.populateSymtable(&child); } }, @@ -193,7 +189,6 @@ pub const Populator = struct { fun.args, fun.retType, ); - std.debug.print("Populated Function {s}\n", .{fun.ident.ident}); if (!try table.insert(fun.ident.ident, symbol)) return error.FailedToInsert; const children = try stmt.children(self.allocator); defer self.allocator.free(children); -- cgit v1.2.3