LF Fortran 95

Names

Names are used in Fortran to refer to various entities such as variables and program units. A name starts with a letter or a `$' and consists entirely of letters, digits, underscores, and the `$' character. A standard conforming name must be 31 characters or less in length, but LF95 accepts names of up to 240 characters in length.

Examples of legal Fortran names are:

aAaAa apples_and_oranges r2d2
rose ROSE Rose

The three representations for the names on the line immediately above are equivalent.

The following names are illegal:

_start_with_underscore
2start_with_a_digit
name_toooooooooooooooooooooooooooooooooooooooooooooooooooo&
&ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo&
&ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo&
&ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo&
&ooooooooo_long
illegal_@_character