Related articles |
---|
ANSI C++ Grammar and lex. krishnan@dset.com (1997-11-09) |
From: | krishnan@dset.com ( Krishnan Nadadhur) |
Newsgroups: | comp.compilers |
Date: | 9 Nov 1997 12:05:10 -0500 |
Organization: | Compilers Central |
Keywords: | C++, parse, question |
Hi,
Where can I find the latest ANSI C++ grammar (BNF) and lex specification?
Could somebody give pointers to available yacc spec. grammar and lex spec
of C++.
Thanks,
Krishnan
[People keep asking this. I don't know of anything newer than Roskind's
grammar that's mentioned in the FAQ. The grammar of C++ is so ambiguous
that it's nearly impossible to parse with standard yacc. There are some
modified versions that can back up and try alternatives that people have
written with C++ in mind. See the archives. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.