home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / misc / cli.cmm < prev    next >
Encoding:
Text File  |  1988-05-03  |  2.0 KB  |  55 lines

  1.  
  2.  
  3.      
  4.                      Comments on Porting
  5.              Command Language Interpreter (CLI)
  6.                         by WIS JPMO
  7.                          to DEC Ada
  8.     
  9.                                                              Tool 34  
  10.                                                              August 2, 1985
  11.      
  12. COMPILATION
  13. -----------
  14.   A VMS command file was created from the ordered list of compilation
  15.   units provided in CLISRC.DIS.
  16.      
  17.   We were able to recompile the Command Language Interpreter with only
  18.   minor changes in two files.  Errors occured because the generic 
  19.   instantiation of package INTEGER_IO was needed, but had been 
  20.   commented out of the code.  This comment notation was removed.  
  21.   Additionally, the parameter "C" in the procedure GETC had to be 
  22.   changed to mode "in out" from mode "out", so that a necessary assignment 
  23.   could be made to "C".
  24.      
  25.  
  26.  
  27. EXECUTION
  28. ---------
  29.   We were able to link CLI_2 without any problems.  Although no
  30.   Users Manual was provided, the code stated that the Command
  31.   Language Interpreter (CLI) implements the tools found in
  32.   chapters one and two of "Software Tools in Pascal" by Brian
  33.   W. Kernighan and P. J. Plauger.  The following commands were
  34.   able to be executed by the Command Language Interpreter:
  35.      
  36.   copy            detab            expand
  37.   charcount       entab            translit
  38.   linecount       overstrike       quit
  39.   wordcount       compress
  40.      
  41.   Most of the commands read subsequent text from the terminal
  42.   modifying it in one way or another.  The commands we tried
  43.   worked and would exit as expected, but when the CLI tried to 
  44.   read the next command the end-of-file condition would not be 
  45.   cleared and the CLI would abort with an unhandled exception 
  46.   "END_ERROR".
  47.      
  48.  
  49.  
  50. COMMENT
  51. -------
  52.   The CLI is not a generalized command language interpreter.  Rather
  53.   it provides a framework upon which to build a more general CLI.
  54.  
  55.