Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83 based; site homxa.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ulysses!mhuxl!houxm!homxa!wcs From: wcs@homxa.UUCP (Bill Stewart HO 4K-437 x0705) Newsgroups: net.lang.c Subject: Re: Strange C parses Message-ID: <175@homxa.UUCP> Date: Mon, 23-Apr-84 17:51:54 EST Article-I.D.: homxa.175 Posted: Mon Apr 23 17:51:54 1984 Date-Received: Tue, 24-Apr-84 07:36:45 EST References: <262@nmtvax.UUCP> Organization: AT&T Bell Labs, Holmdel NJ Lines: 20 This is an reply to the article about why int *v, *w; x= *v/*w; treats the /* as a Begincomment token, while ... x= *v/ *w; works. (Note that I have x= *v, not x=*v, which still dies on System V, in violation of the current language definitions. (So do k=-1; or k=++j; ) ) I assume the reason is that comments are handled by the lexical analyzer, rather than by the grammar. While this is not totally flexible, it's much cleaner to program, and you don't get killed by /* stuff with bad(syntax( */. I think the /* problem is a tolerable compromise (since I don't use it much); the =op stuff bugs me. Bill Stewart AT&T Bell Labs, Holmdel