It seems to me that it would be more in the spirit of scheme
to specify regexps by forms rather than strings.
This would have 3 major benefits
1) it would simplfy writing functions that build regexps.
2) it would make regexps more readable (you could pretty print them)
3) it better reflects the abstract structure of regexps
4) AWK/Perl programers would have fits if they saw it.
The inplicit backquote convention used for
Scsh process forms would probably be appropriate.
Is there a reason why this is not the way it is done?
Several lisp/scheme implementations provide regexps
and they all seem to use AWK like syntax.
Daniel
|