This is a bison example project that lets you write a parser in C++. It is not a tutorial, just an example.

The majority of this work comes from Jonathon Beard's excellent example. See README.md in the files section to get a link to his site.

This project adds the following to his work
* The Makefile now automatically generates dependencies as you compile
* Enhanced Bison error message handling is turned on by default
* An example grammar shows you how to create better compile error messages in your parser -- see language_parser.h.
* Support for using the C preprocessor in your own language is included. See script "run-cc".

Mr Beard did the hard work, and I have only added several "ease of use" improvements.

To create your own novel language:
* edit mc_driver.l and mc_driver.yy to define the grammer
* then edit language*.h to implement it.
See comments in the language* files

Project Activity

See All Activity >

Follow cppbison

cppbison Web Site

Other Useful Business Software
Simplify IT and security with a single endpoint management platform Icon
Simplify IT and security with a single endpoint management platform

Automate the hardest parts of IT

NinjaOne automates the hardest parts of IT, delivering visibility, security, and control over all endpoints for more than 20,000 customers. The NinjaOne automated endpoint management platform is proven to increase productivity, reduce security risk, and lower costs for IT teams and managed service providers. The company seamlessly integrates with a wide range of IT and security technologies. NinjaOne is obsessed with customer success and provides free and unlimited onboarding, training, and support.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of cppbison!

Additional Project Details

Registered

2019-08-01