optimization pass thru parser
[henge/apc.git] / src / apc.c
index a4ae543..cea3847 100644 (file)
--- a/src/apc.c
+++ b/src/apc.c
@@ -28,7 +28,9 @@ int main(int, char*[]);
 extern //bison
 int yyparse(void);
 extern //lexer.c
-int  lexer_init(void);
+int lexer_init(void);
+extern //ir.c
+int ir_init(void);
 
 extern //apc/parser.tab.c
 YYSTYPE yylval;
@@ -74,8 +76,8 @@ int main
       printf(USAGE_LONG);
       exit(EXIT_SUCCESS);
   }
-  if (lexer_init())
-    { perror("lexer");
+  if (lexer_init() || ir_init())
+    { perror("init");
       exit(EXIT_FAILURE);
     }
   yyparse();