projects
/
henge
/
apc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimization pass thru parser
[henge/apc.git]
/
src
/
apc.c
diff --git
a/src/apc.c
b/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
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;
extern //apc/parser.tab.c
YYSTYPE yylval;
@@
-74,8
+76,8
@@
int main
printf(USAGE_LONG);
exit(EXIT_SUCCESS);
}
printf(USAGE_LONG);
exit(EXIT_SUCCESS);
}
- if (lexer_init())
- { perror("
lexer
");
+ if (lexer_init()
|| ir_init()
)
+ { perror("
init
");
exit(EXIT_FAILURE);
}
yyparse();
exit(EXIT_FAILURE);
}
yyparse();