An Alternative to the Use of Patterns in String Processing
- 1 April 1980
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 2 (2) , 153-172
- https://doi.org/10.1145/357094.357096
Abstract
SNOBOL4 is best known for its string processing facilities, which are based on patterns as data objects. Despite the demonstrated success of patterns, there are many shortcomings associated with their use. The concept of patterns in SNOBOL4 is examined and problem areas are discussed. An alternative method for high-level string processing is described. This method, implemented in the programming language Icon, employs generators , which are capable of producing alternative values. Generators, coupled with a goal-driven method of expression evaluation, provide the string processing facilities of SNOBOL4 without the disadvantages associated with patterns. Comparisons between SNOBOL4 and Icon are included and the broader implications of the new approach are discussed.Keywords
This publication has 13 references indexed in Scilit:
- Generators in IconACM Transactions on Programming Languages and Systems, 1981
- The icon programming languageACM SIGPLAN Notices, 1979
- The SL5 procedure mechanismCommunications of the ACM, 1978
- A fast string searching algorithmCommunications of the ACM, 1977
- Fast Pattern Matching in StringsSIAM Journal on Computing, 1977
- An overview of SL5ACM SIGPLAN Notices, 1977
- Macro SPITBOL—a SNOBOL4 compilerSoftware: Practice and Experience, 1977
- String analysis and synthesis in SL5Published by Association for Computing Machinery (ACM) ,1976
- New Programming Languages for Artificial Intelligence ResearchACM Computing Surveys, 1974
- A theory of discrete patterns and their implementation in SNOBOL4Communications of the ACM, 1973