Final project for the Formal Languages and Compilers courses.
You can run this program with:
python program.py input_file.c [—-print]
When executed with no options, this program will print ‘OK’ if there are no lexycal/syntactic/semantic errors; otherwise, it will print the Error that was found.
When executed with the —-print
option, if there are no lexycal/syntactic/semantic errors, it will print the Symbols’ Table, the Intermediary Code and the Warnings; otherwise, it will print the Error that was found.