Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] What's wrong with my parser ?
Hi,

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.
    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:
     [< _ = Stream.empty >] ->

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