parsing ISO C++(1998/2003)

parthaspanda2005@yahoo.com
14 Apr 2007 20:41:08 -0400

          From comp.compilers

Related articles
parsing ISO C++(1998/2003) parthaspanda2005@yahoo.com (2007-04-14)
Re: parsing ISO C++(1998/2003) ang.usenet@gmail.com (Aaron Gray) (2007-04-18)
Re: parsing ISO C++(1998/2003) parthaspanda2005@yahoo.com (2007-04-19)
Re: parsing ISO C++(1998/2003) ang.usenet@gmail.com (Aaron Gray) (2007-04-23)
Re: parsing ISO C++(1998/2003) haberg@math.su.se (2007-04-23)
Re: parsing ISO C++(1998/2003) idbaxter@semdesigns.com (Ira Baxter) (2007-04-26)
Re: parsing ISO C++(1998/2003) torbenm@app-7.diku.dk (2007-04-26)
[5 later articles]
| List of all articles for this month |

From: parthaspanda2005@yahoo.com
Newsgroups: comp.compilers
Date: 14 Apr 2007 20:41:08 -0400
Organization: Compilers Central
Keywords: C++, parse

Hi,


        No matter how many shots at it, I havent been
        able to get bison/yacc to parse the C++ grammar
        specified in the reference manual.


        Factoring and other smart tricks leave the grammar
        as much different from the original grammar
        and no matter what, shift/reduce and reduce/reduce
        conflicts run galore.


        Is there any trick that I may be missing?


        How do I get the grammar in the manual
        not to change much as well as pass under
        bison/yacc?


Sincerely,
Partha Sarathi Panda
[C++ is context sensitive. You can't parse it using a yacc parser
unless you do some serious external hackery to look ahead and feed
hints back to the parser. This has been discussed at length in the
past, so look at the archives. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.