Ambiguity in C
Henry Spencer
henry at utzoo.UUCP
Fri Oct 10 06:58:21 AEST 1986
> ... So, how do we make the grammar for c unambiguous? One way
> is to write the grammar in a formal language and subject it to analysis by a
> grammar analysis program. I wonder if the standards committee has done this
> for their proposed new language (still called c).
The grammar in the X3J11 drafts is a bit more formal than the one in K&R,
and has been very carefully munged so that the "sizeof(int)-1" ambiguity
is gone. (Personally I never considered this a serious problem, but it's
pleasant that they solved it.)
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,decvax,pyramid}!utzoo!henry
More information about the Comp.lang.c
mailing list