Click here to Skip to main content
15,867,771 members
Articles / Programming Languages / C++

Debugging a Bison Grammar

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
27 May 2020CPOL 4.9K   6  
How to get more information from a bison .output file.
When running a grammar through bison, you will invariably get shift/reduce and/or reduce/reduce errors. If your grammar is small enough, it is usually not too difficult to spot the problems but when the grammar is larger it can become baffling to work out what is going on. This code pulls more information out of the .output log file to help you see what the actual problem is.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
I started programming in 1983 using Sinclair BASIC, then moved on to Z80 machine code and assembler. In 1988 I programmed 68000 assembler on the ATARI ST and it was 1990 when I started my degree in Computing Systems where I learnt Pascal, C and C++ as well as various academic programming languages (ML, LISP etc.)

I have been developing commercial software for Windows using C++ since 1994.

Comments and Discussions