Lahey/Fujitsu Fortran

Program Structure Statements

BLOCK DATA

The BLOCK DATA statement begins a block data program unit.

CONTAINS

The CONTAINS statement separates the body of a main program, module, or subprogram from any internal or module subprograms it contains.

END

The END statement ends a program unit, module subprogram, interface, or internal subprogram.

FUNCTION

The FUNCTION statement begins a function subprogram, and specifies its return type and name (the function name by default), its dummy argument names, and whether it is recursive.

INTERFACE

The INTERFACE statement begins an interface block. An interface block specifies the forms of reference through which a procedure can be invoked. An interface block can be used to specify a procedure interface, a defined operation, or a defined assignment.

MODULE

The MODULE statement begins a module program unit.

PROGRAM

The PROGRAM statement specifies a name for the main program.

Statement Function

A statement function is a function defined by a single statement.

SUBROUTINE

The SUBROUTINE statement begins a subroutine subprogram and specifies its dummy argument names and whether it is recursive.