FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
NO SPACES [NO] SPACE BEFORE ... [NO] SPACE AFTER ... |
Function:
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:
The spacing is specified by the commands:
NO SPACES
The token may be:
Note that the NO SPACE BEFORE and NO SPACE AFTER commands do not remove spaces if these are required after the preceding token or before the next one.
The NO SPACES command removes all unnecessary spaces. It is equivalent to NO SPACE BEFORE all tokens and NO SPACE AFTER all tokens. Note that it does not result in the removal of all space characters because a space is still inserted between consecutive alphanumeric strings, as in for example, INTEGER I.
When a format is set up, it is often convenient to begin with a NO SPACES command and then to add spaces as appropriate.
The SHOW FORMAT command is used interactively to display the current format settings. They are saved to an FSP file by the SAVE FORMAT command.
Example formats are distributed in the files spaced.fsp and compact.fsp in the main FPT directory.
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 |
No |
|
Default:
NO SPACES
(Note that defaults for format are usually redefined in the configuration file)
Examples:
FPT> NO SPACES
FPT> SPACE BEFORE SYMBOLS
FPT> SPACE BEFORE OPERATORS
FPT> SPACE BEFORE KEYWORDS
FPT> NO SPACE BEF ','
See also:
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.