fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

LOWER CASE ...

Syntax:

LOWER CASE { SYMBOLS | KEYWORDS | INTRINSICS | OPERATORS | FILENAMES | PARAMETERS | EXPONENT CHARACTERS } UPPER CASE { SYMBOLS | KEYWORDS | INTRINSICS | OPERATORS | FILENAMES | PARAMETERS | EXPONENT CHARACTERS } FILE NAMES AS WRITTEN SYMBOLS AS [FIRST] WRITTEN

Function:

Specifies the case in which the named objects will be written in the code output by fpt.

SYMBOLS are user-defined symbols such as variable and sub-program names. The command SYMBOLS AS FIRST WRITTEN specifies that symbol names will be written with the upper and lower case characters with which they were first encountered. Note that keywords used as symbol names are already defined within fpt to be upper case, and this command will not change symbol names such as RESULT which is a Fortran keyword.

KEYWORDS are Fortran keywords, such as REAL, IF, OPEN, UNIT, STATUS etc.

INTRINSICS are intrinsic function names such as SIN, COS, %VAL etc.

OPERATORS are .AND., .XOR. etc. and the literals .TRUE. and .FALSE.

FILE NAMES or FILENAMES are the names written in INCLUDE statements.

The commands UPPER CASE PARAMETERS and LOWER CASE PARAMETERS control the case of Fortran parameter names and override the case specified by UPPER/LOWER CASE SYMBOLS.

The commands UPPER CASE EXPONENT CHARACTERS and LOWER CASE EXPONENT CHARACTERS control the case of the E, D and Q characters written in real numbers.

To change the case of the comment delimiter please use the command:

CHANGE COMMENT DELIMITER TO: <string>

The current format rules are displayed by the command SHOW FORMAT and are saved in the form of a FSP file by the command SAVE FORMAT.

Note that file names are usually converted to lower case when files are moved to Linux or Unix systems. It is therefore convenient to specify LOWER CASE FILE NAMES before porting from VMS, Windows or MPX to Linux

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

UPPER CASE

except for file names where the default is

FILE NAMES AS WRITTEN.

(Note that the default cases are usually set in the configuration file).

Examples:

In an FSP file:

%UPPER CASE KEYWORDS %LOWER CASE SYMBOLS

Interactively:

FPT> lower case symbols

See Also

SAVE FORMAT

SHOW FORMAT

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