Re: Programming language and IDE design

George Neuner <gneuner2@comcast.net>
Tue, 19 Nov 2013 12:41:54 -0500

          From comp.compilers

Related articles
[14 earlier articles]
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-11-08)
Re: Programming language and IDE design jthorn@astro.indiana.edu (Jonathan Thornburg) (2013-11-10)
Re: Programming language and IDE design martin@gkc.org.uk (Martin Ward) (2013-11-16)
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: Parsing Fortran, was Programming language and IDE design gah@ugcs.caltech.edu (glen herrmannsfeldt) (2013-11-19)
Re: Parsing Fortran, was Programming language and IDE design gah@ugcs.caltech.edu (glen herrmannsfeldt) (2013-11-21)
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)
[3 later articles]
| List of all articles for this month |
From: George Neuner <gneuner2@comcast.net>
Newsgroups: comp.compilers
Date: Tue, 19 Nov 2013 12:41:54 -0500
Organization: A noiseless patient Spider
References: 13-11-016 13-11-018
Keywords: Fortran, parse, comment
Posted-Date: 19 Nov 2013 13:23:40 EST

Our esteemed moderator wrote:


>[Fortran through F77 potentially had to look arbitrarily far ahead to
>tell FORMAT statements from an assignment to an array called FORMAT.
>BTDT. But I would be surprised if any modern languages were that hard
>to lex. -John]


You're right - I forgot that the FORMAT *statement* also could be
confused with an assignment [I only ever used format strings with READ
and WRITE]. That potentially could require a large lookahead.


But it's still LL(k). 8-)


George
[Oh, sure, once you know whether a statement is an assignment or
something else, parsing is trivial. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.