home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OL.LZH / PROGS.LZH / IWRITER.ICN < prev    next >
Text File  |  1991-07-13  |  668b  |  25 lines

  1. ############################################################################
  2. #
  3. #    Name:    iwriter.icn
  4. #
  5. #    Title:    Write Icon code to write input
  6. #
  7. #    Author:    Ralph E. Griswold
  8. #
  9. #    Date:    March 7, 1990
  10. #
  11. ############################################################################
  12. #
  13. #     Program that reads standard input and produces Icon expressions,
  14. #  which when compiled and executed, write out the original input.
  15. #
  16. #     This is handy for incorporating, for example, message text in
  17. #  Icon programs.  Or even for writing Icon programs that write Icon
  18. #  programs that ... .
  19.  
  20. procedure main()
  21.  
  22.    while  write("write(",image(read()),")")
  23.  
  24. end
  25.