|
From: | Hans Aberg |
Subject: | Re: can we generate a C++ parser with Bison? |
Date: | Wed, 27 Jul 2005 18:13:07 +0200 |
On 27 Jul 2005, at 06:58, Sheng Wang wrote:
Since Bison 2.0 can generate GLR parser, can we use this feature to get a C++ parser that can correctly parse C++ programs that conform to the ISO standard?
There is an example in the Bison manual on how some of the C++ ambiguities can be resolved using GLR. If you want a Yacc-like C++ grammar, see http://www.parashift.com/c++-faq-lite/compiler- dependencies.html#faq-38.11 More general info about compiler construction can be found in he Usenet newsgroup comp.compilers and the FAQ published there monthly.
Hans Aberg
[Prev in Thread] | Current Thread | [Next in Thread] |