Top: f77
Previous: 12,2 - Tab Next: 13,1 - Directive_Statements


Section 13: Statements

 Statements in a Fortran program unit follow a required order.  In
 the following figure, vertical lines separate statement types that
 can be interspersed.  For example, DATA statements can be
 interspersed with executable statements.  Horizontal lines indicate
 statement types that cannot be interspersed.  For example, type
 declaration statements cannot be interspersed with executable
 statements.










 +-------+--------------------------------------------------------+
 |       |              OPTIONS Statement                         |
 |       |--------------------------------------------------------|
 |       |PROGRAM, FUNCTION, SUBROUTINE, or BLOCK DATA Statements |
 |       |--------+-----------------------------------------------|
 |COMMENT|         |  IMPLICIT NONE Statement                     |
 | Lines,|         |-------------------------------+--------------|
 |INCLUDE|NAMELIST,|  IMPLICIT Statements          |              |
 | State-| FORMAT, |------+------------------------|  PARAMETER   |
 | ments,|   &     |      |  Other Specification   |  Statements  |
 |& Gen- | ENTRY   | DATA |      Statements,       |              |
 |  eral | State-  |State-|  DICTIONARY Statements |              |
 |Direc- |  ments  | ments|------------------------+--------------|
 | tives |         |      |   Statement Function Definitions      |
 |       |         |      |---------------------------------------|
 |       |         |      |       Executable Statements           |
 |-------+---------+------+---------------------------------------|
 |                     END Statement                              |
 +----------------------------------------------------------------+

Sub-Topics

  1. Directive_Statements
  2. Executable_Statements
  3. Specification_Statements
  4. ACCEPT
  5. ASSERT
  6. ASSIGN
  7. Assignment
  8. AUTOMATIC_and_STATIC
  9. BACKSPACE
  10. BLOCK_DATA
  11. CALL
  12. CLOSE
  13. COMMON
  14. CONTINUE
  15. DATA
  16. DELETE
  17. DIMENSION
  18. DO
  19. DO_WHILE
  20. ELSE
  21. ELSE_IF
  22. END
  23. END_DO
  24. END_MAP
  25. END_STRUCTURE
  26. END_UNION
  27. ENDFILE
  28. END_IF
  29. ENTRY
  30. EQUIVALENCE
  31. EXTERNAL
  32. FORMAT
  33. FUNCTION
  34. Function_Reference
  35. GOTO
  36. IF
  37. IMPLICIT
  38. IMPLICIT_NONE
  39. INCLUDE
  40. Input_Output
  41. INQUIRE
  42. INTRINSIC
  43. MAP
  44. NAMELIST
  45. OPEN
  46. OPTIONS
  47. PARAMETER
  48. PAUSE
  49. POINTER
  50. PRINT
  51. PROGRAM
  52. READ
  53. RECORD
  54. RETURN
  55. REWIND
  56. REWRITE
  57. SAVE
  58. Statement_Function
  59. STOP
  60. STRUCTURE
  61. SUBROUTINE
  62. TYPE
  63. Type_declaration
  64. UNION
  65. UNLOCK
  66. VOLATILE
  67. WRITE

Top: f77
Previous: 12,2 - Tab Next: 13,1 - Directive_Statements