Nearly complete Zig AST

This commit is contained in:
2025-05-24 15:17:04 -05:00
parent 0bf8c3ef6b
commit d94403d126
5 changed files with 1113 additions and 65 deletions

View File

@@ -28,14 +28,12 @@ return;
ContainerDocComment: "Hello, world!",
ContainerMembers: []*zig.ContainerMember{
{
Decls: []zig.Decl{
&zig.FnDecl{
Name: "main",
ReturnType: "void",
Body: &zig.Block{
Stmts: []zig.Stmt{
&zig.ReturnStmt{},
},
Decl: &zig.FnDecl{
Name: "main",
ReturnType: &zig.Identifier{Name: "void"},
Body: &zig.Block{
Stmts: []zig.Stmt{
&zig.ReturnStmt{},
},
},
},