./src/lexer <input file>
./src/parser <input file name>
./lexer.py
./lexer.py <filename> <filename> <more files>
./parser.py -h
./parser.py -v
./parser.py -o <output file name> <input file name>
make clean
##Libraries used
- python2 or python3
- Python Lex/Yacc (ply) by David Beazley
- Pydot Library
##Additional features ##Error reporting ###If there is an error in the source code the parser reports most (and more) errors in the file but does not generate the graph.
References Grammar lex and yacc files : https://github.com/eliben/pycparser
Test Code References Code1.c: https://www.programiz.com/c-programming/examples/prime-number-intervals
Code2.c: https://www.programiz.com/c-programming/examples/quadratic-roots
Code3.c:https://www.programiz.com/c-programming/examples/product-numbers
Code4.c https://www.tutorialspoint.com/data_structures_algorithms/merge_sort_program_in_c.htm
Code5.c https://www.programiz.com/c-programming/examples/remainder-quotient