API definitions and enum declaration rendering

This commit is contained in:
Robin Voetter
2020-01-27 23:14:52 +01:00
parent b5d71079e8
commit 191c445683
4 changed files with 274 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
const std = @import("std");
const xml = @import("xml.zig");
const Registry = @import("registry.zig").Registry;
const vk_render = @import("render.zig").render;
pub fn main() !void {
if (std.os.argv.len <= 1) {
@@ -22,8 +23,11 @@ pub fn main() !void {
const registry = Registry.fromXml(std.heap.page_allocator, spec.root);
defer registry.deinit();
// registry.dump();
registry.dump();
const stdout_file = std.io.getStdOut();
var stdout = stdout_file.outStream();
try vk_render(&stdout.stream, registry);
}
test "main" {