<?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="2002/07/4646ea3840468a1a992752add8269c3d"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2002-07-12T07:14:24"
  subject="Re: [Caml-list] What&apos;s wrong with my parser ?"
  prev="2002/07/1cae46f000eae6265af63fc4f16d7bc5"
  next="2002/07/7a53453ae2b7b2f75c7a043007c1a129"
  prev-in-thread="2002/07/895c189fc1924ba0778af55006e0dbc8"
  next-in-thread="2002/07/2883b78ed3d95e9729ba61b17cb910fc"
  prev-thread="2002/07/4e07fd5ea13c7b76f164f1ee5265fa6c"
  next-thread="2002/07/b0c7298c9c0bead77bcf8ed319d71bf4"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] What&apos;s wrong with my parser ?">
<msg 
  url="2002/07/1fdaa5e902b0c73415d567249ed998ad"
  from="Nicolas FRANCOIS &lt;nicolas.francois@f...&gt;"
  author="Nicolas FRANCOIS"
  date="2002-07-12T02:33:12"
  subject="[Caml-list] What&apos;s wrong with my parser ?">
<msg 
  url="2002/07/7185ceed122bb848370dcb84ee239d6e"
  from="John Prevost &lt;j.prevost@c...&gt;"
  author="John Prevost"
  date="2002-07-12T02:42:17"
  subject="Re: [Caml-list] What&apos;s wrong with my parser ?">
</msg>
<msg 
  url="2002/07/895c189fc1924ba0778af55006e0dbc8"
  from="John Prevost &lt;j.prevost@c...&gt;"
  author="John Prevost"
  date="2002-07-12T02:52:48"
  subject="Re: [Caml-list] What&apos;s wrong with my parser ?">
<msg 
  url="2002/07/4646ea3840468a1a992752add8269c3d"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2002-07-12T07:14:24"
  subject="Re: [Caml-list] What&apos;s wrong with my parser ?">
</msg>
</msg>
<msg 
  url="2002/07/2883b78ed3d95e9729ba61b17cb910fc"
  from="Nicolas FRANCOIS &lt;nicolas.francois@f...&gt;"
  author="Nicolas FRANCOIS"
  date="2002-07-13T11:19:24"
  subject="Re: [Caml-list] What&apos;s wrong with my parser ?">
</msg>
</msg>
</thread>

<contents>
Hi,

On Thu, Jul 11, 2002 at 10:59:20PM -0400, John Prevost wrote:

&gt; And at this point, parse is called on [&lt; &gt;] again and it loops.
&gt; Unfortunately, I can't remember how to explicitly check for the end of
&gt; the stream

It is not the point: even testing the end of the stream would not
help, since the example did not reach the end of the stream, it
took no token at all (no character at all) from the stream.

&gt; --and it's been removed from the O'Caml manual.

It has been copied is in the Camlp4 manual, but perhaps not yet in
the 3.04 version.
    http://caml.inria.fr/camlp4/manual/manual003.html

However the module "Stream" is still part of the OCaml manual. To test
the empty stream, call the parser Stream.empty:
     [&lt; _ = Stream.empty &gt;] -&gt;

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

