diff --git a/main.c b/main.c index b395388..8c99734 100644 --- a/main.c +++ b/main.c @@ -3,17 +3,9 @@ #include "token.h" -/* Flex */ -// extern FILE *yyin; -// extern int yylex(); -// extern char* yytext; - -/* Bison */ -extern int yyparse(); - int main() { - if (yyparse()) { + if (yyparse() == 0) { printf("Parse successful!\n"); } else { printf("Parse failed!\n");