FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


SPACED OPERATORS

Syntax:

[NO] SPACED OPERATORS

Function:

The command SPACED OPERATORS modifies the format of the Fortran code written by FPT. It instructs FPT to ensure that a space or tab character is written before and after every operator and delimiter, except that it does not change the spacing rule before a comma or before or after an underscore character delimiting a kind specification, and does not cause a space to be written after an operator or delimiter which occurs at the end of a line.

The command NO SPACED OPERATORS instructs FPT not to write spaces before and after operators unless the spaces are required by the spacing rules for the following or preceding tokens. Spaces are always written before and after the dot-delimited operators and constants .AND., .OR., .TRUE. etc.

The spacing rules for individual operators and delimiters (including spacing before a comma), and for keywords, symbols, numbers and other tokens, are controlled by the commands SPACE BEFORE and SPACE AFTER. The spacing rules are reset to remove all unnecessary spaces between tokens by the command NO SPACES.

The current spacing rules are recorded by the SAVE FORMAT command. They are displaced by the SHOW FORMAT command.

Where to use this command:

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

Yes


Default:

NO SPACED OPERATORS

(Note that formatting defaults are usually set in the configuration file or in FSP files invoked indirectly from it)

See also:

NO SPACES

SAVE FORMAT

SHOW FORMAT

SPACE AFTER

SPACE BEFORE


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.