diff options
author | Teddy <[email protected]> | 2014-04-27 02:25:48 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-27 02:25:48 +0800 |
commit | fbafb96963beae48ca095839ffb17b82f9901e5f (patch) | |
tree | 36a3ec0dde78269ca3e1d5ccd985bfd849370104 /main.c | |
parent | 0282e6aa2f3b24a3ffed876b099ec97e6a79a8ff (diff) |
ssa init
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include <stdlib.h> #include "cibic.tab.h" #include "ast.h" +#include "ssa.h" #include "semantics.h" extern char linebuff[]; @@ -51,6 +52,12 @@ void print_sem() { /* cnode_debug_print(ast_root, 1); */ } +void print_ssa() { + cibic_init(); + yyparse(); + ssa_generate(semantics_check(ast_root)); +} + void print_help() { fprintf(stderr, "CBIC: C Implemented Bare and Ingenuous Compiler\n\n" @@ -114,7 +121,7 @@ int main(int argc, char **argv) { { case PRINT_AST: print_ast(); break; case PRINT_HELP: print_help(); break; - default: print_sem(); + default: print_ssa(); } return 0; } |