scsh-users
[Top] [All Lists]

Regexp forms

To: scsh@martigny.ai.mit.edu
Subject: Regexp forms
From: Daniel Mahler <mahler@socs.uts.edu.au>
Date: Tue, 6 Aug 1996 00:52:23 +1000 (EST)
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

<Prev in Thread] Current Thread [Next in Thread>