1
.TH RATFOR 1 "Jun 1996"
3
ratfor77 \- ratfor preprocessor for Fortran 77
17
Set starting label number.
20
Specify output file; default is stdout.
23
Keep comments in (useful for compiler directives).
26
Show summary of options.
29
Ratfor has the following syntax:
35
if (...) stat else stat
38
repeat stat until (...)
39
for (...;...;...) stat
41
switch (intexpr) { case val[,val]: stmt ... default: stmt }
46
{ prog } or [ prog ] or $( prog $)
47
anything unrecognizable
49
where stat is any Fortran or Ratfor statement, and intexpr is an
50
expression that resolves into an integer value. A statement is
51
terminated by an end-of-line or a semicolon. The following translations
56
!= .ne. ^= .ne. ~= .ne.
59
! .not. ^ .not. ~ .not.
61
Integer constants in bases other that decimal may be specified as
62
n%dddd... where n is a decimal number indicating the base and dddd...
63
are digits in that base. For bases > 10, letters are used for digits
64
above 9. Examples: 8%77, 16%2ff, 2%0010011. The number is converted
65
the equivalent decimal value using multiplication; this may cause sign
66
problems if the number has too many digits.
68
String literals ("..." or '...') can be continued across line boundaries
69
by ending the line to be continued with an underline. The underline is
70
not included as part of the literal. Leading blanks and tabs on the
71
next line are ignored; this facilitates consistent indentation.
75
will include the named file in the input.
77
define (name,value) or
80
defines name as a symbolic parameter with the indicated value. Names of
81
symbolic parameters may contain letters, digits, periods, and underline
82
character but must begin with a letter (e.g. B.FLAG). Upper case is
83
not equivalent to lower case in parameter names.
85
string name "character string" or
86
string name(size) "character string"
88
defines name to be an integer array long enough to accommodate the ASCII
89
codes for the given character string, one per word. The last word of
90
name is initialized to the symbolic parameter EOS, and indicates the end
94
ratfor fortran preprocessor fortran77 ratfor77 spp