home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
MOUSEDIR.ZIP
/
REXXREF2.DOC
< prev
next >
Wrap
Text File
|
1992-03-16
|
3KB
|
74 lines
REXXREF <target <(options>>
This KEDIT macro reformats and cross references Rexx and Kexx files.
SAAREXX (OS/2 Rexx) required.
Target:
(null) - process all lines. This is the default.
Target cannot be null when options are
specified.
ALL - same as null.
n - process n lines.
an XEDIT target - If the target is a delimited string and
options have been specified, the string
must be delimited on both left and right.
Options (minimum abbrev in upper case, default first):
INdent nn - Number of spaces to indent loops. Default is 3.
LM or LEftmargin nn - Create left margin such that the first non-
comment line begins in column 'nn'. Useful
when REXXREFing subsections of a program.
RM or RIghtmargin nn - Column for right-aligning comments.
Default is 73.
REFresh nn - Refresh screen after nn lines processed.
Default is MIN(50,size.1()). Use 0 to
never refresh.
NOXref / Xref - Don't generate/generate a cross reference.
Lines containing 'DO' or 'SELECT' are indented, while lines
containing 'END' are un-indented. Continuation lines are indented
additional space(s). Lines after hanging 'THEN' or 'ELSE' are also
indented. Indenting is supressed for lines beginning with a label.
Lines begining with '/*' will be left alone. Where possible, lines
which end in a comment ('*/'), and which also contain executable
statements (like a comment at the end of a line), will be adjusted
so that the '/' will fall in the 'RIGHTCOLUMN' column.
Keywords are not scanned exactly as the language specifies. 'FUZZ',
for example, is always considered a keyword, not just when it
follows 'NUMERIC'. Keywords are checked for last, in case a label
or function has the same name as a keyword. Keywords are normally
changed to lower case.
Builtin functions are treated as keywords.
The CROSS REFERENCE
The cross reference has three parts. The first part lists the
variables in alphabetical order (by the first 22 characters) and
each line on which they were found. If the variable appeared more
than once on a line, then that line number will be repeated. Line
numbers where the variable was the first token are preceeded by an
'*' (these are assumed to be variable assignments).
The second part lists the labels. The line number where they are
defined is preceeded by an '*'.
The third part lists the functions. A name may appear as both a
label and a function, and for those that do, the line number where
the function is defined is preceeded by an '*' and prefixed to the
FUNCTIONs list.
The CROSS REFERENCE is formatted as a REXX comment block and appended
to the source file.