24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>FORTRAN</strong> Source Program Format<br />

before the PARAMETER statement that defines the name and value of a symbolic constant. A<br />

PARAMETER statement that defines the name and value of a symbolic constant must precede all<br />

other statements containing a reference to that symbolic constant.<br />

The following chart illustrates the required order of <strong>FORTRAN</strong> statements. Vertical lines delineate<br />

varieties of statements that may be interspersed, while horizontal lines mark varieties of statements that<br />

may not be interspersed.<br />

PROGRAM, FUNCTION, SUBROUTINE, or<br />

BLOCK DATA Statement<br />

PARAMETER<br />

IMPLICIT<br />

Statements<br />

Comment ENTRY Statements Other<br />

Lines<br />

Specification<br />

and<br />

Statements<br />

FORMAT<br />

Statement<br />

INCLUDE<br />

Function<br />

Statement Statements DATA Statements<br />

Statements<br />

Executable<br />

Statements<br />

END<br />

Statement<br />

Required Order of Comment Lines and Statements<br />

For example, DATA statements may be interspersed with statement function statements and executable<br />

statements but statement function statements must precede executable statements.<br />

Order of <strong>FORTRAN</strong> Statements and Lines 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!