Follow these steps to compile and execute the compiler using the commands provided in commands.bat:
bison -d parser.y # Generate parser source and header files
flex lexical.l # Generate lexical analyzer source file
gcc -c SymbolTable.c -o SymbolTable.o # Compile symbol table module
gcc -c parser.tab.c -o parser.o # Compile parser module
gcc -c lex.yy.c -o lexical.o # Compile lexical analyzer module
gcc -o compilateur SymbolTable.o lexical.o parser.o -lfl # Link all modules into executableTo test the compiler with an example input file:
./compilateur < exemple.txtNote: Make sure all dependencies (Bison, Flex, GCC) are installed and available in your system's PATH.




