home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OL.LZH / PROCS.LZH / RECOG.ICN < prev    next >
Text File  |  1991-09-05  |  770b  |  31 lines

  1. ############################################################################
  2. #
  3. #    Name:    recog.icn
  4. #
  5. #    Title:    Main 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.