repl: ignore comments

closes #10
This commit is contained in:
Luna 2019-10-20 13:12:49 -03:00
parent ecc9546de2
commit c75db19523
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
} else if (std.mem.eql(u8, line, "quit") or std.mem.eql(u8, line, "q")) {
std.debug.warn("leaving\n");
break;
} else if (std.mem.startsWith(u8, line, "#")) {
continue;
}
var cmds_parsed = lang.parse(line) catch |err| {