This tool is a C++ library that can create a recursive-descent parser based on CFG syntax. It was made for fun after reading the book Object-Oriented Programming in C++ by Robert Lafore and subsequently getting exposed to compiler concepts in the Dragon book.
Disclaimer: This was written as a practice and should not be used in any serious applications.
g++ CFG.cpp yourfile.cpp -o yourbinary
No additional dependencies other that what C++ has to offer. A tool to render graphviz is needed to show the parse tree.
- Chai Yi Chen - Author
This project is licensed under the MIT License - see the LICENSE file for details
- Author of OOP in C++, Robert Lafore
- Authors of Dragon Book
- The various Github users who have kindly created a set of solutions for the Dragon Book at (https://github.com/fool2fish/dragon-book-exercise-answers)