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 / procwrap.icn < prev    next >
Text File  |  2000-07-29  |  860b  |  37 lines

  1. ############################################################################
  2. #
  3. #    File:     procwrap.icn
  4. #
  5. #    Subject:  Program to produce Icon procedure wrappers
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     September 29, 1994
  10. #
  11. ############################################################################
  12. #
  13. #   This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  This little program takes procedure names from standard input and
  18. #  writes minimal procedure declarations for them.  For example, the
  19. #  input line
  20. #
  21. #    wrapper
  22. #
  23. #  produces
  24. #
  25. #    procedure wrapper()
  26. #    end
  27. #
  28. #  This program is useful when you have a lot of procedures to write.
  29. #
  30. ############################################################################
  31.  
  32. procedure main()
  33.  
  34.    while write("procedure ", read(), "()\nend\n")
  35.  
  36. end
  37.