fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
[DO NOT] ACCEPT CHARACTER: <string>
Instructs fpt to accept or to reject a non-alphanumeric character as a legal character within the name of a user-defined symbol (for example, a variable, a COMMON block name or a sub-program name). The character to be accepted or rejected is enclosed in single or double quotes. The available characters are: # $ % & @ _ and :.
$ and _ (underscore) are accepted by most Fortran dialects, but all of these characters are used by at least one implementation of the language. fpt imposes the following rules for their use:
A difficulty arises with names containing the character : (colon). This is used in sub-program and variable names by Gould-SEL (now Encore) Fortran for the Concept series of computers, which are widely used in real-time simulation. It is not always possible for fpt to distinguish between a range or sub-string specification which contains a colon and a name with an embedded colon. Users are advised to watch for and to suppress spurious errors.
Where to Use this Command
|Operating system command line||Yes|
|Configuration file, config.fsp||Yes|
|Specification (fsp) files, *.fsp||Yes|
|Interactively, to FPT> prompt||No|
|Interactive command files||No|
|Embedded in the Fortran code||Yes|
The characters $ and _ are accepted and the characters #, %, &, @ and : are rejected by default (Note that defaults may be changed in the configuration file).
fpt is run under Windows with the command:
D:\John\Test> fpt "%accept character:':'" encorelib.fsp
The sub-program name M:TDAY is then accepted.
Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.