Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] What's wrong with my parser ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-12 (07:14)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] What's wrong with my parser ?

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

> And at this point, parse is called on [< >] again and it loops.
> Unfortunately, I can't remember how to explicitly check for the end of
> 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.

> --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.

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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: