FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
SHOW KEYWORDS USED FOR SYMBOLS SHOW KEYWORDS USED TO NAME SYMBOLS |
Function:
FPT displays the names and attributes of all symbols which have the same names as Fortran keywords and intrinsic functions. The listing is organised in three sections: primary keywords, auxiliary keywords and intrinsics. A primary keyword is a keyword which may introduce a statement, such as INTEGER, IF or GOTO. An auxiliary keyword is a keyword which may occur only in specific contexts after one or more primary keywords, such as STATUS, PRECISION or CASE.
FPT always lists the symbols with the same names as keywords and intrinsic functions in the listing (.fpl) file. However, it is convenient to have the list available interactively, so that the information is visible when using the RENAME SYMBOL command.
Where to use this command:
Operating system command line |
No |
|
Configuration file, config.fsp |
No |
|
Specification (FSP) files, *.fsp |
No |
|
Interactively, to FPT> prompt: |
Yes |
|
Interactive command files |
Yes |
|
Embedded in the Fortran code |
No |
|
Example:
The list of keywords used for symbols is used as a guide for renaming the symbols to avoid name conflicts:
FPT> show keywords used for symbols
FORTRAN Keywords used as identifiers
====================================
Name Sub-prog/Struct Use/COMMON Address Type Size Value/Bounds
---- --------------- ---------- ------- ---- ---- ------------
DO INTERP Local REAL *8
SELECT SWITCH Local LOGICAL *2
FPT> rename DO D_0
FPT> show keywords used for sym
FORTRAN Keywords used as identifiers
====================================
Name Sub-prog/Struct Use/COMMON Address Type Size Value/Bounds
---- --------------- ---------- ------- ---- ---- ------------
SELECT SWITCH Local LOGICAL *2
FPT>
See also:
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.