Related articles |
---|
[17 earlier articles] |
Re: Programming language and IDE design DrDiettrich1@aol.com (Hans-Peter Diettrich) (2013-11-16) |
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-11-18) |
Re: Programming language and IDE design sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl) (2013-11-19) |
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-11-19) |
Re: Programming language and IDE design jonathan@cobalt.astro.indiana.edu (Jonathan Thornburg) (2013-11-19) |
Re: Programming language and IDE design wclodius@earthlink.net (2013-11-22) |
Re: Programming language and IDE design robin51@dodo.com.au (robin) (2013-11-25) |
Re: Programming language and IDE design martin@gkc.org.uk (Martin Ward) (2013-12-03) |
Re: Programming language and IDE design DrDiettrich1@aol.com (Hans-Peter Diettrich) (2013-12-05) |
Re: Programming language and IDE design hu47121@usenet.kitty.sub.org (2014-03-02) |
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2014-03-02) |
From: | "robin" <robin51@dodo.com.au> |
Newsgroups: | comp.compilers |
Date: | Mon, 25 Nov 2013 10:33:43 +1100 |
Organization: | Compilers Central |
References: | 13-11-016 13-11-018 |
Keywords: | Fortran, parse |
Posted-Date: | 27 Nov 2013 11:15:11 EST |
From: "George Neuner" <gneuner2@comcast.net>
Sent: Tuesday, November 19, 2013 11:02 AM
> AFAIK, Fortran's DO loop requires the most lookahead of any of the
> classic language features: LL(4) [if I'm counting correctly].
>
> 10DOI=42
> 10DOI=42,45
The statements are
DO 10 I = 42
DO 10 I = 42, 45
> Card Fortran didn't require whitespace separation.
Still doesn't, though since the advent of Fortran 90,
an alternative free source form requires a space between the syntactic elements,
so the difficulty doesn't arise. Nor, can the "classic" (apocryphal?) error
DO10I=42.45
occur (assuming that declarations are made compulsory with the statement
IMPLICIT NONE).
Return to the
comp.compilers page.
Search the
comp.compilers archives again.