"C" wish list/semicolons

Daniel R. Levy levy at ttrdc.UUCP
Fri Nov 8 17:04:50 AEST 1985


In article <4528 at alice.UUCP>, ark at alice.UucP (Andrew Koenig) writes:
>Ummm... the assignment to f is problematic.  Let's change it a bit:
>	f = x + 7
>		*p++
>Now, is this one statement or two?  I strongly suggest that if
>you want to have a syntactic rule for continuing a statement,
>you make it a lexical rule instead, as in EFL.  Thus, if the
>last token on a line is {insert list here}, the statement is
>continued.  The list would be exactly those tokens that cannot
>ever end a statement, such as ( = + - * / and so on.

What about

	something++
	more(code)

-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!ihnp4!ttrdc!levy



More information about the Comp.lang.c mailing list