home *** CD-ROM | disk | FTP | other *** search
-
- -------- SIMTEL20 Ada Software Repository Prologue ------------
- -- -*
- -- Unit name : EDITOR (ALED - Ada Line Editor)
- -- Version : 2.1
- -- Author : Richard Conn
- -- : Texas Instruments
- -- : PO Box 801, MS 8007
- -- : McKinney, TX 75069
- -- DDN Address : RCONN at SIMTEL20
- -- Copyright : (c) 1984, 1985 Richard Conn
- -- Date created : 9 Nov 84
- -- Release date : 5 Dec 84
- -- Last update : 15 Feb 85
- -- Machine/System Compiled/Run on : DG MV 10000, ROLM ADE
- -- : All system-specific features are isolated in
- -- : the package SYSDEP, so I believe
- -- : that the editor is transportable between a
- -- : a wide variety of environments; I encountered
- -- : a number of "surprises" when I programmed the
- -- : editor, and I don't know if they were caused
- -- : by the ROLM ADE implementation of TEXT_IO or if
- -- : they were intentional; see the documentation
- -- -*
- ---------------------------------------------------------------
- -- -*
- -- Keywords : EDITOR
- ----------------: LINE-ORIENTED EDITOR
- ----------------: INPUT-LINE EDITOR
- --
- -- Abstract : ALED - Ada Line Editor
- ----------------: A Line-Oriented File Editor Written in Ada
- ----------------: by Richard Conn
- ----------------:
- ----------------: ALED is designed to edit text files. Upon invocation,
- ----------------: ALED prompts the user for a file name. If the file
- ----------------: exists, its contents (lines) are read in and prepared
- ----------------: for editing; if the file does not exist, the file is
- ----------------: created and the empty buffer is prepared for editing.
- ----------------: ALED is an interactive editor, accepting single-char
- ----------------: commands, filling in a command prompt (for more info
- ----------------: as needed), and performing its functions in real-time
- ----------------: while the user watches. The functions provided include
- ----------------: (but are not limited to) the following:
- ----------------:
- ----------------: * List Lines
- ----------------: * Insert a Group of Lines into the Edit Buffer
- ----------------: * Delete Lines
- ----------------: * String Search and String Substitution
- ----------------: * Movement Within the Edit Buffer
- ----------------: * Reading in a File After a Specified Line
- ----------------: * Writing out a Range of Lines to a File
- ----------------: * Built-in, online Documentation (Summary)
- ----------------:
- ----------------: ALED's design includes an input line editor, which allows
- ----------------: the user to edit text as he types it. I was surprised
- ----------------: NOT to find such a basic function available in TEXT_IO.
- ----------------: Did I miss something?
- ----------------:
- ----------------: ALED is divided into the following files. The order
- ----------------: in which they are listed is the compilation order.
- ----------------:
- ----------------: SIMTEL20 Ada Package/Procedure Comments
- ----------------:
- ----------------: SYSDEP.ADA sysdep Components library
- ----------------: of single-character
- ----------------: I/O routines
- ----------------:
- ----------------: LIST.ADA generic_list Components library
- ----------------: of linked-list routines
- ----------------:
- ----------------: ED-SPT.ADA edit_support Visible section
- ----------------: of editor support
- ----------------: package (which contains
- ----------------: a few basic routines,
- ----------------: such as the input line
- ----------------: editor)
- ----------------:
- ----------------: ED-SPTB.ADA edit_support Body of editor support
- ----------------: package
- ----------------:
- ----------------: ED-WRK.ADA edit_worker Visible seciton of
- ----------------: workhorse routines
- ----------------: for the editor;
- ----------------: all major editor
- ----------------: functions and their
- ----------------: related support
- ----------------: routines are here
- ----------------: (such as list lines)
- ----------------:
- ----------------: ED-WRKB.ADA edit_worker Body of editor
- ----------------: workhorse routines
- ----------------:
- ----------------: ED.ADA editor Mainline of ALED
- ----------------:
- ----------------:
- -- -*
- ------------------ Revision history ---------------------------
- -- -*
- -- DATE VERSION AUTHOR HISTORY
- -- 12/5/84 1.0 Richard Conn Initial Release
- -- 1/21/85 2.0 Richard Conn Production version
- -- 2/15/85 2.1 Richard Conn Minor bug fix
- -- -*
- ------------------ Distribution and Copyright -----------------
- -- -*
- -- This prologue must be included in all copies of this software.
- --
- -- This software is copyright by the author.
- --
- -- This software is released to the Ada community.
- -- This software is released to the Public Domain (note:
- -- software released to the Public Domain is not subject
- -- to copyright protection).
- -- Restrictions on use or distribution: NONE
- -- -*
- ------------------ Disclaimer ---------------------------------
- -- -*
- -- This software and its documentation are provided "AS IS" and
- -- without any expressed or implied warranties whatsoever.
- -- No warranties as to performance, merchantability, or fitness
- -- for a particular purpose exist.
- --
- -- Because of the diversity of conditions and hardware under
- -- which this software may be used, no warranty of fitness for
- -- a particular purpose is offered. The user is advised to
- -- test the software thoroughly before relying on it. The user
- -- must assume the entire risk and liability of using this
- -- software.
- --
- -- In no event shall any person or organization of people be
- -- held responsible for any direct, indirect, consequential
- -- or inconsequential damages or lost profits.
- -- -*
- -------------------END-PROLOGUE--------------------------------
-