Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ulysses.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ggs From: ggs@ulysses.UUCP (Griff Smith) Newsgroups: net.lang.f77 Subject: Fortran unambiguous? Message-ID: <846@ulysses.UUCP> Date: Thu, 10-May-84 22:26:00 EDT Article-I.D.: ulysses.846 Posted: Thu May 10 22:26:00 1984 Date-Received: Sat, 12-May-84 09:46:58 EDT Organization: AT&T Bell Laboratories, Murray Hill Lines: 32 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