feat: basic code generation
This commit is contained in:
parent
3ab279de0f
commit
55346fcd85
4 changed files with 579 additions and 16 deletions
10
src/main.zig
10
src/main.zig
|
|
@ -85,6 +85,16 @@ fn mainArgs(
|
|||
.use_color = use_color,
|
||||
});
|
||||
defer story.deinit();
|
||||
|
||||
try story.dump(&stderr_writer.interface);
|
||||
if (compile_only) return;
|
||||
|
||||
while (story.can_advance) {
|
||||
const content = try story.advance();
|
||||
defer gpa.free(content);
|
||||
|
||||
std.debug.print("{s}\n", .{content});
|
||||
}
|
||||
}
|
||||
|
||||
fn readSourceFile(gpa: std.mem.Allocator, file_reader: *std.fs.File.Reader) ![:0]u8 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue