A simplified compiler for C language 89 which is known as ANSI C.
- Install GNU
flex
andbison
and add them to the path environement variable. - Install GNU
gcc
compiler. - Install GNU
Make
- (Optional) Install
Graphviz
in case you want to generate the parse tree images. - (Optional) For the GUI install
python 3
, then installpyqt5
andpyqt5-tools
using pip. - run
make
- run
make test INPUT=file_name.c
Replacefile_name.c
with the name of the test file.
- run
make show_pst INPUT=file_name.c
Replacefile_name.c
with the name of the test file.
- run
make show_ast INPUT=file_name.c
Replacefile_name.c
with the name of the test file.
- run
make show_sym INPUT=file_name.c
Replacefile_name.c
with the name of the test file.
- run
make show_all INPUT=file_name.c
Replacefile_name.c
with the name of the test file.
cd
to the gui folder- run
python compiler.py
- press
browse and compile
, then choose the test file.