home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / bdex.zip / BDEX.DOC next >
Text File  |  1990-08-27  |  2KB  |  55 lines

  1.   BDEX:  BASIC line number reference and organization -- (C) 1990  R. Beck
  2.  
  3.   ════════════════════════════════════════════════════════════════════════════
  4.  
  5.   BDEX was written to help identify algorithms in BASIC programs so that
  6.   they may be converted to another language.  This is not a full translation
  7.   utility, but it helps to convert program code to a vertical format.
  8.  
  9.   It separates commands and removes unreferenced line numbers --which is
  10.   more readable and easier to reverse-engineer.  The line numbers that do
  11.   remain are preceded by an "L" to identify them as a label.
  12.  
  13.   Arrays, variables, and strings are listed separately.
  14.  
  15.   BDEX is capable of crude translation to structured BASIC, C, or Pascal by
  16.   using the "/B", "/C", or "/P" options.  The results, although limited,
  17.   are especially useful for changing quote characters in Pascal strings.
  18.  
  19.   Indentations will follow IF/THEN, FOR/NEXT, and WHILE/WEND conditions to
  20.   simplify the listing.  This is in effect only until the next label.
  21.  
  22.   Spaces are normally used for indenting, but TAB characters may be
  23.   substituted by using "/T" on the command line.
  24.  
  25.   BEGIN/END markings in Pascal, {/} markings in C, and IF/END_IF markings
  26.   will be inserted automatically for IF/THEN conditions.  This cannot be
  27.   done with FOR/NEXT or WHILE/WEND blocks.
  28.  
  29.   C programmers should pay special attention to the FOR/NEXT commands, and how
  30.   they are converted.
  31.  
  32.   This program was recently improved to recognize assignment statements for
  33.   C and Pascal translation.
  34.  
  35.  
  36.   The syntax is command-line oriented:
  37.  
  38.             BDEX <filename> [/B|/C|/P] [/T]
  39.  
  40.                 /B  --modifies some code for structured BASIC
  41.                 /C  --modifies some code for C translation
  42.                 /P  --modifies some code for Pascal
  43.                 /T  --uses TAB characters
  44.  
  45.  
  46.   ════════════════════════════════════════════════════════════════════════════
  47.  
  48.   Randolph Beck
  49.   P.O. Box  56-0487
  50.   Orlando, FL 32856
  51.  
  52.   CIS:  72361,753
  53.  
  54.  
  55.