topiku/src/main.zig

19 lines
429 B
Zig

const std = @import("std");
const prompt = @import("prompt.zig");
pub fn main() anyerror!void {
const stdout = std.io.getStdOut().writer();
try stdout.writeAll("BYOL Lispy - ver. 0.0.1\n");
prompt.init();
defer prompt.deinit();
while (true) {
var input = prompt.readline("BYOL> ") orelse break;
defer std.c.free(&input);
try stdout.print("Echo> {s}\n", .{input});
}
}