Updated the source for master

This commit is contained in:
Lorenzo Torres 2025-08-01 21:38:27 +02:00
parent 2fe3d6cb3f
commit e7e0927a83
7 changed files with 30 additions and 23 deletions

View file

@ -490,8 +490,8 @@ fn parseCode(self: *Parser) !Func {
}
const ir = try IR.parse(self);
const stdout = std.io.getStdOut().writer();
try ir.print(stdout);
// const stdout = std.fs.File.stdout().writer();
// try ir.print(stdout);
const func = Func{
.locals = try self.allocator.alloc(vm.Valtype, local_count),

View file

@ -120,7 +120,7 @@ pub const Runtime = struct {
// Like this
.@"unreachable" => {
std.log.err("Reached unreachable statement at IR counter {any}\n", .{frame.program_counter});
frame.code.print(std.io.getStdOut().writer()) catch {};
//frame.code.print(std.io.getStdOut().writer()) catch {};
},
.nop => {},
.br => {