Open Command Prompt and navigate to the file directory:
cd path\to\your\file\directory
Run the following commands:
flex filename.l
gcc lex.yy.c
a.exe
Run the following commands:
bison -d filename.y
flex same_filename.l
gcc lex.yy.c add.tab.h
open cmd then cd to file directory
flex filename.l gcc lex.yy.c a.exe for parser bison -d filename.y flex same_filename.y gcc lex.yy.c add.tab.c a.exe