home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / progs / gener.icn < prev    next >
Text File  |  2000-07-29  |  995b  |  40 lines

  1. ############################################################################
  2. #
  3. #    File:     gener.icn
  4. #
  5. #    Subject:  Program to generate sequence from Icon expression
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     January 21, 1999
  10. #
  11. ############################################################################
  12. #
  13. #  This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  This program takes an Icon expression is given on the command line, and
  18. #  writes its results to standard output.  Watch for syntactic problems.
  19. #
  20. ############################################################################
  21. #
  22. #  Requires:  system(), pipes
  23. #
  24. ############################################################################
  25. #
  26. #  Links:  exprfile
  27. #
  28. ############################################################################
  29.  
  30. link exprfile
  31.  
  32. procedure main(args)
  33.    local input
  34.  
  35.    input := exprfile(args[1], "seqfncs")
  36.  
  37.    while write(read(input))
  38.  
  39. end
  40.