Question: Write a findRE generator in Icon that mimics the behavior of find, but takes as its first parameter a regular expression. Use a string to
Write a findRE generator in Icon that mimics the behavior of find, but takes as its first parameter a regular expression. Use a string to represent your regular expression, with syntax as in Section 2.1.1. Use empty parentheses to represent ∈. Give highest precedence to Kleene closure, then concatenation, then alternation. You may assume that we never search for vertical bar, asterisk, or parenthesis characters.
Step by Step Solution
3.54 Rating (151 Votes )
There are 3 Steps involved in it
Here is an example of a findRE generator in Icon that ... View full answer
Get step-by-step solutions from verified subject matter experts
