hcc: remove not needed declerations and correct yyparse() value check
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
a58e8316ec
commit
f12cc8a8ed
10
main.c
10
main.c
@ -3,17 +3,9 @@
|
|||||||
|
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
|
||||||
/* Flex */
|
|
||||||
// extern FILE *yyin;
|
|
||||||
// extern int yylex();
|
|
||||||
// extern char* yytext;
|
|
||||||
|
|
||||||
/* Bison */
|
|
||||||
extern int yyparse();
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
if (yyparse()) {
|
if (yyparse() == 0) {
|
||||||
printf("Parse successful!\n");
|
printf("Parse successful!\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Parse failed!\n");
|
printf("Parse failed!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user