Browse thread
Re: [Caml-list] Cannot find Stream Parser Documentation
-
Wolfram Kahl
-
Daniel de Rauglaudre
- Wolfram Kahl
-
Daniel de Rauglaudre
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Wolfram Kahl <kahl@c...> |
| Subject: | Re: [Caml-list] Streams |
Hi, Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr> pinpointed the problem: > > It was an error that the OCaml version accepted the "??" for the first > element. Thanks! > Your code is equivalent to: > > let pc0 c = parser n > [< ' x > when x == c > >] -> ();; However, there is nothing on http://caml.inria.fr/camlp4/tutorial/tutorial002.html 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 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