Skip to content

Commit

Permalink
fix: make the repl work
Browse files Browse the repository at this point in the history
  • Loading branch information
kamva9697 committed Nov 5, 2023
1 parent 85238ce commit d9dda59
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
const std = @import("std");
const token = @import("./token.zig");
const lexerTests = @import("./lexerTest.zig");

const repl = @import("./repl.zig");

pub fn main() anyerror!void {
try repl.start();
const print = std.debug.print;

pub fn main() !void {
print("Hello this is the Monkey-lang, Code your world, one banana at a time\n", .{});
print("Start typing, Monkey-style :) \n\n", .{});

var gpa = std.heap.GeneralPurposeAllocator(.{}){};
var arena = std.heap.ArenaAllocator.init(gpa.allocator());
defer arena.deinit();

try repl.start(arena.allocator());
}

0 comments on commit d9dda59

Please sign in to comment.