home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
MATCHLIB.ICN
< prev
next >
Wrap
Text File
|
1991-09-05
|
1KB
|
57 lines
############################################################################
#
# Name: matchlib.icn
#
# Title: Matching procedures
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
############################################################################
#
# These procedures perform low-level "lexical" matching for
# recursive-descent pattern matchers.
#
# rb_() match right bracket
# lb_() match left bracket
# rp_() match right parenthesis
# lp_() match left parenthesis
# vb_() match vertical bar
# nl_() match newline
# empty_() match empty string
#
############################################################################
#
# See also: parsgen.icn
#
############################################################################
procedure rb_()
suspend =">"
end
procedure lb_()
suspend ="<"
end
procedure rp_()
suspend =")"
end
procedure lp_()
suspend =")"
end
procedure vb_()
suspend ="|"
end
procedure nl_()
suspend ="\n"
end
procedure empty_()
suspend ""
end