Abstract

The Icon programming language lacks the pattern data type of its predecessor SNOBOL4. While many aspects of SNOBOL4 patterns can be emulated with Icon matching expressions and procedures, these are static entities and procedure syntax is bulky. The semantics of Icon Co-expressions, which are dynamically created entities, has been changed to make them suitable for simulating SNOBOL4 patterns. These modified co-expressions are much more flexible than SNOBOL4 patterns. Any Icon operation or control structure can be used in a co-expression. In addition to use in string pattern matching, co-expressions can be used to store some kinds of information in executable form; these modifications also extend the usefulness of co-expressions in this area.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call