home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / BIPL.ZIP / PROCS.ZIP / RECOG.ICN < prev    next >
Encoding:
Text File  |  1992-12-30  |  777 b   |  31 lines

  1. ############################################################################
  2. #
  3. #    File:     recog.icn
  4. #
  5. #    Subject:  Procedure for recognition
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     September 2, 1991
  10. #
  11. ###########################################################################
  12. #
  13. #     This procedure serves as a main procedure for the output of
  14. #  recognizers.
  15. #
  16. ############################################################################
  17. #
  18. #  See also:  pargen.icn
  19. #
  20. ############################################################################
  21.  
  22. procedure main()
  23.    init()
  24.    while line := read() do {
  25.       writes(image(line))
  26.       if line ? (goal() & pos(0)) then 
  27.          write(": accepted")
  28.       else write(": rejected")
  29.       }
  30. end
  31.