From 8789086642164604971
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,5105623963cf728,start
X-Google-Attributes: gidf78e5,public
Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: kprateek88@yahoo.com (Prateek R Karandikar)
Newsgroups: comp.std.c++
Subject: Whitespace ambiguity in grammar
Date: Mon, 24 May 2004 19:02:31 +0000 (UTC)
Organization: http://groups.google.com
Lines: 39
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <607f883e.0405241033.ea113f8@posting.google.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1085425351 26781 10.0.0.1 (24 May 2004 19:02:31 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 24 May 2004 19:02:31 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BSKiV-0006xo-00
	for mail2news@news.news.demon.net; Mon, 24 May 2004 19:02:31 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i4OJ2Slp017136; Tue, 25 May 2004 05:02:28 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i4OJ2ROc017117;
	Tue, 25 May 2004 05:02:27 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: Mon, 24 May 2004 18:33:56 +0000 (UTC)
X-Spamscanner: mailbox7.ucsd.edu  (v1.4 May 20 2004 13:55:33, 2.2/5.0 2.63)
X-MailScanner: PASSED (v1.2.8 36897 i4OIXvsp056238 mailbox7.ucsd.edu)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=-2.4 required=5.2 tests=AWL,BAYES_00,
	FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS autolearn=no version=2.60-mulga_r1
Xref: controlnews3.google.com comp.std.c++:454

When there are 2 consecutive elements of grammar, sometimes it is
intended that whitespace be required between them, someimes that there
be no whitespace between them, and sometimes that whitespace is
optional.
For ex,

1)
original-namespace-definition:
	namespace identifier { namespace-body }

Clearly, whitespace is required between namespace and identifier.

2)
decimal-literal:
	nonzero-digit
	decimal-literal digit
Clearly, it is required that there be no whitespace between
decimal-literal and digit.

3)

and-expression:
	equality-expression
	and-expression & equality-expression
Clearly, whitespace is optional on both sides of the &.

Isn't this inconsistent?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To iterate is human, to recurse divine.
-L. Peter Deutsch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



