Re: How to parse keywords that can be used as identifiers?

ok@cs.rmit.edu.au (Richard A. O'Keefe)
5 Sep 1996 23:49:37 -0400

          From comp.compilers

Related articles
[6 earlier articles]
Re: How to parse keywords that can be used as identifiers? dlmoore@ix.netcom.com (David L Moore) (1996-08-24)
Re: How to parse keywords that can be used as identifiers? itz@rahul.net (1996-08-24)
Re: How to parse keywords that can be used as identifiers? peter@bj-ig.de (Peter Brueckner) (1996-08-27)
Re: How to parse keywords that can be used as identifiers? stefan.monnier@lia.di.epfl.ch (Stefan Monnier) (1996-08-27)
Re: How to parse keywords that can be used as identifiers? fjh@mundook.cs.mu.OZ.AU (1996-08-27)
Re: How to parse keywords that can be used as identifiers? iwm@doc.ic.ac.uk (Ian Moor) (1996-09-03)
Re: How to parse keywords that can be used as identifiers? ok@cs.rmit.edu.au (1996-09-05)
Re: How to parse keywords that can be used as identifiers? jpff@maths.bath.ac.uk (1996-09-05)
| List of all articles for this month |
From: ok@cs.rmit.edu.au (Richard A. O'Keefe)
Newsgroups: comp.compilers
Date: 5 Sep 1996 23:49:37 -0400
Organization: Comp Sci, RMIT, Melbourne, Australia
References: 96-08-058 96-09-011
Keywords: parse, Fortran

Ian Moor <iwm@doc.ic.ac.uk> writes:
> INTEGER FORMAT
> DIMENSION FORMAT(3)
> I6 = 1
>10 FORMAT(I6)
>20 FORMAT(I6)=1
> WRITE(6,10) FORMAT(I6)


>I would be interested to see what happens on current compilers.


SPARCompiler Fortran 4.0 and my three-year-old (hence obsolete) copy
of f2c agree about this:
        it isn't legal Fortran because it is missing its END statement.


Fix that, and they both get it right.
--
Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.
--


Post a followup to this message

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