C parsing: significance of spaces

gary at mit-eddie.UUCP gary at mit-eddie.UUCP
Mon May 7 13:11:56 AEST 1984


It seems that the lexer returns the LONGEST possible token; therefore
++ +   instead of + ++.

I played with this a little, thinking that a = b+++++c would work; but,
it doesen't because it is parsed as a = b++ ++ +c instead of 
				    a = b++ + ++c.

The longest interesting sequence of + and - with no spaces that I came up with:
	a = b+++-++c
which works out as
	a = b++ + -(++c).


	Gary Samad
	decvax!genrad!mit-eddie!gary



More information about the Comp.lang.c mailing list