Advertisement
Guest User

Untitled

a guest
May 1st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Syntax
  2. RECURSIVE SUBROUTINE sub-name([dummy-args])
  3. RECURSIVE [type-spec] FUNCTION func-name([dummy-args])
  4.     [RESULT(result-name)]
  5. Where:
  6.     sub-name is the name of the subroutine
  7.     dummy-args is a comma-seperated list of dummy argument names
  8.     type-spec is
  9.         INTEGER [kind-selector] REAL [kind-selector] DOUBLE
  10.         COMPLEX [kind-selector] CHARACTER [char-selector] LOGICAL [kind-selector]
  11.         TYPE (type-name)
  12.     kind-selector is ( [KIND=] kind)
  13.     char-selector is ( [LEN=] length [, ) KIND=kind
  14.     or (KIND=kind [, LEN=length]) or * char-length [,]
  15.     kind is a scalar INTEGER expression or *
  16.     char-length is a scalar INTEGER literal constant or (*)
  17.     func-name is the name of the function.
  18.     result-name is the name of the result variable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement