Menu

#1 Count of conflicts reported differs from those listed

open
nobody
None
5
2012-12-06
2009-08-25
No

Hi there.

While getting my head around C++ parsing I thought I'd try bisonc++ as I'm a C++ developer.
Unfortunately I appear to be hitting a brick wall in terms of getting it to parse some simple "C" statements.

You may (possibly correctly) say that my grammar files need work - they aren't finished but should do for parsing statements.
The issue they highlight is that the number of Reduce/Reduce and Shift/Reduce conflicts don't match the actual count in the .output file.

To ease the process of reproducing my results, all you need do is
git-clone git://v3c.git.sourceforge.net/gitroot/v3c/v3c
cd v3c
make git tag=1.0.3.3 check
or
make git tag=1.0.3.3 debug check
for more verbose output.

All the "simple_c_test" and "simple_cxx_test" programs do is try to parse a C/C++ statement to find it's end.

Look for "cxx_statement.y.output" in the build directory for the discrepancy.

I got the grammar from http://www.nongnu.org/hcb/

Discussion