home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
bdex.zip
/
BDEX.DOC
next >
Wrap
Text File
|
1990-08-27
|
2KB
|
55 lines
BDEX: BASIC line number reference and organization -- (C) 1990 R. Beck
════════════════════════════════════════════════════════════════════════════
BDEX was written to help identify algorithms in BASIC programs so that
they may be converted to another language. This is not a full translation
utility, but it helps to convert program code to a vertical format.
It separates commands and removes unreferenced line numbers --which is
more readable and easier to reverse-engineer. The line numbers that do
remain are preceded by an "L" to identify them as a label.
Arrays, variables, and strings are listed separately.
BDEX is capable of crude translation to structured BASIC, C, or Pascal by
using the "/B", "/C", or "/P" options. The results, although limited,
are especially useful for changing quote characters in Pascal strings.
Indentations will follow IF/THEN, FOR/NEXT, and WHILE/WEND conditions to
simplify the listing. This is in effect only until the next label.
Spaces are normally used for indenting, but TAB characters may be
substituted by using "/T" on the command line.
BEGIN/END markings in Pascal, {/} markings in C, and IF/END_IF markings
will be inserted automatically for IF/THEN conditions. This cannot be
done with FOR/NEXT or WHILE/WEND blocks.
C programmers should pay special attention to the FOR/NEXT commands, and how
they are converted.
This program was recently improved to recognize assignment statements for
C and Pascal translation.
The syntax is command-line oriented:
BDEX <filename> [/B|/C|/P] [/T]
/B --modifies some code for structured BASIC
/C --modifies some code for C translation
/P --modifies some code for Pascal
/T --uses TAB characters
════════════════════════════════════════════════════════════════════════════
Randolph Beck
P.O. Box 56-0487
Orlando, FL 32856
CIS: 72361,753