<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/ced6106d4b7a7fe4b8f03f95858134ad"
  from="Chris Conway &lt;cconway@c...&gt;"
  author="Chris Conway"
  date="2009-01-12T15:49:26"
  subject="Re: Regular expression matching against OCaml streams."
  prev="2009/01/e3d8df8aa8dc8aaa7e53b7f77dd8ffd3"
  next="2009/01/727ffcb417322fa6253f028466ffca77"
  prev-in-thread="2009/01/1a6bc2f9ffbdf3622a51b34217224e81"
  next-in-thread="2009/01/e65211ea034261766209b913d033cd99"
  prev-thread="2009/01/2549cd673119c567f7c38185b8f44404"
  next-thread="2009/01/d872246fc16e795f138c798f5c03dea4"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Regular expression matching against OCaml streams.">
<msg 
  url="2009/01/6d098a9e0587a2759e2b95fbcda926ab"
  from="Dmitri Boulytchev &lt;db@t...&gt;"
  author="Dmitri Boulytchev"
  date="2009-01-12T13:00:58"
  subject="Regular expression matching against OCaml streams.">
<msg 
  url="2009/01/1a6bc2f9ffbdf3622a51b34217224e81"
  from="Edgar Friendly &lt;thelema314@g...&gt;"
  author="Edgar Friendly"
  date="2009-01-12T14:34:17"
  subject="Re: [Caml-list] Regular expression matching against OCaml streams.">
<msg 
  url="2009/01/ced6106d4b7a7fe4b8f03f95858134ad"
  from="Chris Conway &lt;cconway@c...&gt;"
  author="Chris Conway"
  date="2009-01-12T15:49:26"
  subject="Re: Regular expression matching against OCaml streams.">
<msg 
  url="2009/01/e65211ea034261766209b913d033cd99"
  from="Dmitri Boulytchev &lt;db@t...&gt;"
  author="Dmitri Boulytchev"
  date="2009-01-12T17:00:53"
  subject="Re: [Caml-list] Re: Regular expression matching against OCaml streams.">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Edgar Friendly &lt;thelema314 &lt;at&gt; gmail.com&gt; writes:

&gt; 
&gt; Dmitri Boulytchev wrote:
&gt; &gt;    Hello,
&gt; &gt; 
&gt; &gt;    is it possible to match OCam streams (by mean of Stream.t) against
&gt; &gt; regular expressions? Are there library
&gt; &gt; that can be used for this purpose? Str matches only against strings.
&gt; 
&gt; I don't know of any libraries for this purpose.  I will warn anyone
&gt; making one that it's easy for simple regex matching to evaluate the
&gt; whole stream, and then fail to match.

Or worse, never terminate. E.g.,

    stream_match "a*b" (Stream.from (fun _ -&gt; Some 'a'))

Regards,
Chris

</contents>

</message>

