ANSI C++ Grammar...

krishnan@dset.com ( Krishnan Nadadhur)
5 Dec 1997 00:58:31 -0500

          From comp.compilers

Related articles
ANSI C++ Grammar... krishnan@dset.com (1997-12-05)
| List of all articles for this month |

From: krishnan@dset.com ( Krishnan Nadadhur)
Newsgroups: comp.compilers
Date: 5 Dec 1997 00:58:31 -0500
Organization: Compilers Central
Keywords: C++, parse, question, comment

Has anybody tried to build a parser, using yacc, from the latest available
ISO-ANSI-C++ grammar. Seems like there is a basic problem in parsing a
simple valid class/struct declaration. Also there are too many shift/reduce
and reduce/reduce conflicts.


I am planning to write a parser to parse a C++ source file.


Thanks,
Krishnan
[In previous discussions, people seemed to feel that the grammar of C++ is
too messy and ambiguous to parse with yacc. There are versions of yacc with
backup, and more powerful parser tools which are up to the task. See the
archives. -John]
--


Post a followup to this message

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