[net.lang.f77] Fortran unambiguous?

ggs@ulysses.UUCP (Griff Smith) (05/11/84)

Maybe "pure" Fortran is unambiguous, but the attempts to
enrich the syntax have introduced some real ambiguities.
Will someone please say what the one true parse of statement
"1" (line 3) is in the following example?

	dimension a(5)
	integer x7h
1	format(x7h)=a(x7h)
2	format(x7h(=a)x7h)
3	format(i)
	a(2) = 5
	i = format(2)
	write (6,2)
	write (6,3) i
	end

While the UNIX F77 compiler parses both statements "1" and "2",
it is unable to classify

4	format(x7h)=a)x7h)

even though all three statements can be parsed as formats.

This problem goes away if you exclude the archaic counted
Hollerith fields or require commas to separate conversion
descriptors.
-- 

Griff Smith	AT&T Bell Laboratories, Murray Hill
Phone:		(201) 582-7736
Internet:	ggs@ulysses.uucp
UUCP:		ulysses!ggs