Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Other 'significant' blanks Message-ID: <4757@utzoo.UUCP> Date: Mon, 10-Dec-84 19:03:14 EST Article-I.D.: utzoo.4757 Posted: Mon Dec 10 19:03:14 1984 Date-Received: Mon, 10-Dec-84 19:03:14 EST References: <10246@watmath.UUCP> Organization: U of Toronto Zoology Lines: 12 > Should a compiler allow blanks between the 'op' and the '=' in an > 'op=' operation? ... K&R actually says explicitly that (e.g.) "+=" is two tokens; hence space between them is allowable (section 7.14). However, practically no C compilers other than the original Ritchie compiler have done it this way. One reason for this is that it makes the language non-LALR(1), so all the yacc-based parsers croak. The current ANSI C draft (12 Nov) says that "+=" is one token. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry