home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
PARSCOND.ICN
< prev
next >
Wrap
Text File
|
1991-09-05
|
861b
|
36 lines
############################################################################
#
# Name: parscond.icn
#
# Title: Condense parse tree
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
############################################################################
#
# Procedure to condense a parse tree produced by the output of pargen.icn
# and produce the string that was parsed.
#
# The necessary recod declaration is provided by the program with which if
# is linked.
#
############################################################################
#
# See also: parsgen.icn
#
############################################################################
procedure parscond(R)
local result, x
result := ""
every x := !(R.alts) do
result ||:= string(x) | parscond(x)
return result
end