hcc: remove not needed declerations and correct yyparse() value check

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2023-12-29 05:17:47 +03:00
parent a58e8316ec
commit f12cc8a8ed

10
main.c
View File

@ -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");