.ps 60,80
.lm 5
.rm 75
.ap
.sp 1
      John Heffernan
      RCA/AS
      BOX 588
      Burlington, MA 01803
      (617)229-3887
.blank 2

   This directory contains a copy of a paper called "Using DEC VAX 
Software From Pascal" given at the spring 1984 DECUS symposium.  
Included are examples of using the librarian, tparse, RMS, set 
message, and set command.  Also, the librarian status codes are given.
These examples can be reused for your applications.  A program to 
generate set message error constants for a PASCAL include file is 
given.  Another example of using lib$tparse is given.  This program
finds all valid binary coded Turing machine programs.

.lt
   The files in this directory are as follows.

   These file make up the paper source :
   ABSTRACT.RNO
   PAPER.RNO
   LBRFUN.REQ
   TBLOCK.REQ
 
   A copy of the paper is in:
   PAPER.MEM

   A program to generate an PASCAL include file for set message constants
   is in the two modules:
   GENERRMSG.PAS which is the main module
   RMSERROR.PAS  which is a giant case statement which spits out 
                 the pascal I/O errors message.  Note that these 
                 constants are NOT compatable with the set message
                 utility and can not be lib$signalled. 
                 These two files are should be linked.

   GEN.COM invokes set message and generrmsg.  The input is a sample set 
           message source in file ERRORS.MSG.  Set message creates 
           the file ERRORS.LIS whcih is the input to generrmsg. 
           Generrmsg outputs the include file errors.pas.
           Note that the errors.obj created by set message must be 
           linked in with your program so that the text messages can
           be found by lib$signal.
   

   ENUMTM.PAS is another example of using lib$tparse.  This program 
              finds and lists all valid Turing machine programs.

   PARSETAB.MAR is the state table for the above.  It must be linked 
                with ENUMTM to produce the image.  (This table 
                actually those programs with up to two instructions;   
                there are many such programs!).
.el
