add quit/q commands to repl
This commit is contained in:
parent
f8814ca94d
commit
8c5f42b3db
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
|
|||
try file.seekTo(0);
|
||||
try printer.printList(cmds, stream);
|
||||
continue;
|
||||
} else if (std.mem.eql(u8, line, "quit") or std.mem.eql(u8, line, "q")) {
|
||||
std.debug.warn("leaving\n");
|
||||
break;
|
||||
}
|
||||
|
||||
var cmds_parsed = lang.parse(line) catch |err| {
|
||||
|
|
Loading…
Reference in a new issue