Artifact 7ba26e222bc974e8810c2ee163c4f30b11f2ab96da81f4e44e4709b70e097ff3:
- File
psl-1983/3-1/help/find.doc
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1052) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/help/find.hlp
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1052) [annotate] [blame] [check-ins using]
FIND.RED - Recognition and search OBLIST functions ------------------------------------------------- This is a loadable option [Load Find; in RLISP, (Load Find) in LISP]. These functions take a string or id, and map the Symbol Table to collect a list of ids with Prefix or Suffix as given: FindPrefix(Key:{Id, String}):id-list Scan Symbol Table for prefix FindSuffix(Key:{Id, String}):id-list Scan Symbol Table for suffix Find(Pattern:{Id,String}):id-list Scan Symbol Table for matching string Thus X:=FindPrefix '!*; Finds all ids starting with * The 'GSORT' package is used to sort the list. The Pattern is a string, with special characters, prefixed by %, like the format string in PrintF; StringMatch(pattern,subject) is called: %% Match a % in subject string %? Match any one character %* Match any series of characters (0..n) Thus Find "*%*"; is equivalent to FindPrefix "*"; Find "%**"; is equivalent to FindSuffix "*"; Find "A%*B"; matches any string starting with A and ending with B.