|ANSI C++ Grammar... firstname.lastname@example.org (1997-12-05)|
|From:||email@example.com ( Krishnan Nadadhur)|
|Date:||5 Dec 1997 00:58:31 -0500|
|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.
[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
Return to the
Search the comp.compilers archives again.