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
Re: [Caml-list] Cannot find Stream Parser Documentation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-11 (14:28)
From: Wolfram Kahl <kahl@c...>
Subject: Re: [Caml-list] Streams

Daniel de Rauglaudre <> pinpointed the problem:
 > It was an error that the OCaml version accepted the "??" for the first
 > element.


 > Your code is equivalent to:
 >   let pc0 c = parser n
 >     [< '  x
 >           when x == c
 >     >] -> ();;

However, there is nothing on
that indicates that even this might be legal ---
``when'' is not mentioned on that page.
Would it perhaps make sense to include an adapted version
of the old OCaml Manual section on streams
that tries to give a general description instead of
just a few selected examples?

(Also I have found it useful to leave two blanks after '
 in parsers since in some instances I obtained very strange
 (lexical?) errors.

Best regards,

Wolfram Kahl

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