<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 01 Apr 1985 00:18:00 MST (Mon)
From   : Keith Petersen <W8SDZ@SIMTEL20.ARPA>
Subject: PREBAS - a Basic pre-processor now available

PREBAS is available from SIMTEL20 as:

Filename                       Type     Bytes   CRC

Directory MICRO:<CPM.BASIC>
PREBAS.LBR.1                   BINARY   67456  5EE9H

Here is a brief excerpt from the author's .DOC file:

PREBAS is a pre-processor for BASIC.  It takes a flat ASCII file, adds
line numbers to it, and, optionally, resolves references to target
labels.  It can also resolve the labels without line numbers, or strip
old line numbers out of a file.  PREBAS is intended as an aid to BASIC
programmers.  With it they can enter a program in their favorite text
editor or word processor, while not worrying about line numbers, or
the targets for their GOTO and GOSUB statements.  It has a number of
options, including:

     adding line numbers
     resolving labels
     stripping old line numbers  
     selection of the start number 
     selection of the step size selection of the label marker 
     addition of comments to the end of a line,  
     showing target labels  
     command line execution (not yet available in MS/DOS version)

PREBAS was written in Microsoft BASIC (MBASIC) and was compiled with
BASCOM. There are three files:

     PREBAS.DOC -- This document.
     PREBAS.COM -- The compiled executable program (linked to 
                   OBSLIB.REL).
     PREBAS.BAS -- The BASIC source code.

Note: I include the BASIC source so that the defaults can be changed
(see Appendix A -- Customization) or so that PREBAS can be recompiled
to run under the BRUN run-time library. PREBAS does run under the
interpreter, but runs very slowly (especially if you are resolving
labels).  PREBAS translates line-by-line (writing each line out to the
new file), rather than in RAM.  I felt that speed was less important
than a limitation of size imposed by the size of RAM.  However, PREBAS
is still limited by disk capacity, needing room for a file at least
the same size as the input file.

--Keith
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>