aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 079d45a..b0852b5 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -14,6 +14,7 @@ do { \
} while(0)
static void ast_resolve(Ast *self, AstCompilerContext *context);
+static void ast_generate_ssa(Ast *self, AstCompilerContext *context);
Ast ast_none() {
Ast ast;
@@ -225,3 +226,19 @@ void ast_resolve(Ast *self, AstCompilerContext *context) {
}
/*self->resolve_status = AST_RESOLVED;*/
}
+
+void scope_generate_ssa(Scope *self, AstCompilerContext *context) {
+ Ast *ast;
+ Ast *ast_end;
+ ast = buffer_start(&self->ast_objects);
+ ast_end = buffer_end(&self->ast_objects);
+ for(; ast != ast_end; ++ast) {
+ ast_generate_ssa(ast, context);
+ }
+}
+
+void ast_generate_ssa(Ast *self, AstCompilerContext *context) {
+ /* TODO: Implement */
+ (void)self;
+ (void)context;
+} \ No newline at end of file