Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: glen herrmannsfeldt Newsgroups: comp.compilers Subject: Re: Parsing Fortran, was Programming language and IDE design Date: Thu, 21 Nov 2013 21:22:45 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 25 Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <13-11-026@comp.compilers> References: <13-11-016@comp.compilers> <13-11-018@comp.compilers> <13-11-021@comp.compilers> <13-11-024@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1385170262 36036 64.57.183.58 (23 Nov 2013 01:31:02 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Sat, 23 Nov 2013 01:31:02 +0000 (UTC) Keywords: Fortran, parse Posted-Date: 22 Nov 2013 20:31:02 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com X-Received-Bytes: 2067 X-Received-Body-CRC: 1379966321 Xref: csiph.com comp.compilers:1050 (snip, I wrote) > Because of this complication, WATFIV, at least the version I used, > disallowed 'FORMAT(' as the first seven characters of a statement that > wasn't a FORMAT statement. That is, no assignment to elements of an > array named FORMAT. (I believe WATFIV allows multiple assignment, so > there would have been a way to get around it.) (snip) > [I found that H descriptors were easy to handle, just pull them out in a > prepass. The problem was assignments that look like format statements: > FORMAT(A5,I3,I5) = 42 > WATFIV was a student compiler and probably concluded that any student > who wrote code like that deserved to fail. -John] But arrays named FORMAT are allowed everywhere else, except at the left side of an assignment. Functions named FORMAT are also allowed. And at least once, (not with WATFIV) I used it as the name of a run-time format specified, which was required to be an array. -- glen