Michael Schinz wrote:
> No, you haven't. You cannot perform regular expression matches
> directly on a stream in scsh, and that's a pain in my opinion.
I'll second that. From a design perspective, it makes sense to use a stream
abstraction for this job. Aside from anything else, it would make code
that's working from a source other than strings more concise, better
abstracted, and easier to write.
FWIW, in PLT Scheme, the regexp functions, while not as comprehensive as
SCSH's, accept either a string or a port.
> This issue was raised here some time ago, so you might be interested
> in reading the thread.
Thanks for the reference.
> (There seems to be a problem with Google, which insists on putting
> some very old articles in the same thread
Apparently Google never forgets a subject line! I liked the 1997 message
> Would anyone be interested in an s-expression based regexp syntax?> I have
recently designed one, and written some processing tools to go> with it.
The SCSH regexp syntax is fantastic - I've just used it for the first time
in the work I'm doing at the moment, and I think I'm in love!