-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} |