From: Chris Conway <cconway@cs.nyu.edu>
To: caml-list@inria.fr
Subject: Re: Regular expression matching against OCaml streams.
Date: Mon, 12 Jan 2009 15:49:16 +0000 (UTC) [thread overview]
Message-ID: <loom.20090112T154624-248@post.gmane.org> (raw)
In-Reply-To: <496B54DF.7080303@gmail.com>
Edgar Friendly <thelema314 <at> gmail.com> writes:
>
> Dmitri Boulytchev wrote:
> > Hello,
> >
> > is it possible to match OCam streams (by mean of Stream.t) against
> > regular expressions? Are there library
> > that can be used for this purpose? Str matches only against strings.
>
> I don't know of any libraries for this purpose. I will warn anyone
> making one that it's easy for simple regex matching to evaluate the
> whole stream, and then fail to match.
Or worse, never terminate. E.g.,
stream_match "a*b" (Stream.from (fun _ -> Some 'a'))
Regards,
Chris
next prev parent reply other threads:[~2009-01-12 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 13:00 Dmitri Boulytchev
2009-01-12 14:34 ` [Caml-list] " Edgar Friendly
2009-01-12 15:49 ` Chris Conway [this message]
2009-01-12 16:59 ` [Caml-list] " Dmitri Boulytchev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20090112T154624-248@post.gmane.org \
--to=cconway@cs.nyu.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox