fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home
| Ref Manual Home |
[NO] SPACE BEFORE <token>
[NO] SPACE AFTER <token>
NO SPACES
where <token> may be:
-
KEYWORDS
-
OPERATORS
-
INTRINSICS
-
NUMBERS
-
HEX
-
LABELS
-
CONTINUATIONS
-
TRAILING COMMENTS
-
FORMAT TOKENS
-
<Specific keyword>
-
<Specific operator>
Spacing may be specified separately for individual operators and keywords. When a specific operator is specified the
operator must be enclosed in string delimiters. Specific keywords may but need not be enclosed in string delimiters.
The SPACE BEFORE, SPACE AFTER and NO SPACES commands
control the spacing of the Fortran code written by fpt.
fpt writes one space character between two consecutive tokens on the same
line according to the following rules:
-
A space is always written between two tokens if the first ends with a
number or letter and the second begins with a number or letter.
-
A space is written after a token if SPACE AFTER has been specified for that token.
-
A space is written before a token if SPACE BEFORE has been specified for that token.
-
fpt does not insert two spaces if a space is required after the first
token and before the second.
-
fpt does not write a space after the last token on a line.
-
A continuation line is generated automatically if the code extends past
the printer column for the current code line length. The printer
column is computed with the assumption that tabs transfer printing to
the next tab stop, at 8 character intervals.
-
If a line is occupied by a single very long token, such as a character
string or Hollerith constant, a space is not inserted between a
continuation character and that token if this would push the end of
the token into the fixed format Fortran comment field beyond the current code line
length, or if it would exceed the maximum free format line length.
-
A space is not inserted before a comma unless the space is explicitly requested by the
the SPACE BEFORE COMMA command.
-
Spaces are not inserted around the underscore delimiter which separates a literal value from its Fortran
90 kind specifier. Note that most compilers require this.
The SHOW FORMAT command
is used interactively to display the current format settings.
formats are distributed in the files free_format.fsp, spaced.fsp
and compact.fsp
in the main fpt directory.
|
Operating system command line | Yes
|
|
Configuration file, config.fsp | Yes
|
|
Specification (fsp) files, *.fsp | Yes
|
|
Interactively, to FPT> prompt | Yes
|
|
Interactive command files | Yes
|
|
Embedded in the Fortran code | No
|
NO SPACES
(Note that defaults may be changed in the configuration file)
SHOW FORMAT