diff options
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |