A simplified compiler for C language 89 which is known as ANSI C.
- Install GNU
flexandbisonand add them to the path environement variable. - Install GNU
gcccompiler. - Install GNU
Make - (Optional) Install
Graphvizin case you want to generate the parse tree images. - (Optional) For the GUI install
python 3, then installpyqt5andpyqt5-toolsusing pip. - run
make
- run
make test INPUT=file_name.cReplacefile_name.cwith the name of the test file.
- run
make show_pst INPUT=file_name.cReplacefile_name.cwith the name of the test file.
- run
make show_ast INPUT=file_name.cReplacefile_name.cwith the name of the test file.
- run
make show_sym INPUT=file_name.cReplacefile_name.cwith the name of the test file.
- run
make show_all INPUT=file_name.cReplacefile_name.cwith the name of the test file.
cdto the gui folder- run
python compiler.py - press
browse and compile, then choose the test file.