Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: David PONCE <david.ponce@wa...> - 2003-09-19 20:24:48
> i found on the http://www.xref-tech.com/ <http://www.xref-tech.com/>
> the complete ANSI C++-grammar written in YACC-syntax! Could this be
> used as basis for a semantic-2.0 C++-grammar for the new LALR-wisent
Unfortunately not really :-(
ANSI C/C++ grammars are not LALR(1), and, as stated on the
xref-tech.com site, the C++ grammar presented is just:
"A browsable ANSI C++ grammar in YACC format.
This is not an executable grammar for YACC (due to ambiguities)!
It is simply the ANSI standard rewritten into YACC syntax."
A such grammar needs a lot of work to become acceptable by YACC, Bison
I started to work on a LALR C grammar for Wisent (see wisent-c stuff
in CVS). It is a non-trivial task, and I don't hope to have something
that works for Semantic 2.0.
Of course, any help will be appreciated ;-)
P.S.: It seems that even the GCC developers have abandoned the parser
generated from a Bison C++ grammar, because it was too hard to
maintain, and wrote an hand-crafted C++ parser for newer versions of