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

  1. ############################################################################
  2. #
  3. #    Name:    matchlib.icn
  4. #
  5. #    Title:    Matching procedures
  6. #
  7. #    Author:    Ralph E. Griswold
  8. #
  9. #    Date:    September 2, 1991
  10. #
  11. ############################################################################
  12. #
  13. #     These procedures perform low-level "lexical" matching for
  14. #  recursive-descent pattern matchers.
  15. #
  16. #    rb_()        match right bracket
  17. #    lb_()        match left bracket
  18. #    rp_()        match right parenthesis
  19. #    lp_()        match left parenthesis
  20. #    vb_()        match vertical bar
  21. #    nl_()        match newline
  22. #    empty_()    match empty string
  23. #
  24. ############################################################################
  25. #
  26. #  See also: parsgen.icn
  27. #
  28. ############################################################################
  29.  
  30. procedure rb_()
  31.    suspend =">"
  32. end
  33.  
  34. procedure lb_()
  35.    suspend ="<"
  36. end
  37.  
  38. procedure rp_()
  39.    suspend =")"
  40. end
  41.  
  42. procedure lp_()
  43.    suspend =")"
  44. end
  45.  
  46. procedure vb_()
  47.    suspend ="|"
  48. end
  49.  
  50. procedure nl_()
  51.    suspend ="\n"
  52. end
  53.  
  54. procedure empty_()
  55.    suspend ""
  56. end
  57.