From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA13828; Thu, 11 Apr 2002 16:28:20 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA12070 for ; Thu, 11 Apr 2002 16:28:19 +0200 (MET DST) Received: from ritchie.cas.McMaster.CA (ritchie.cas.McMaster.CA [130.113.68.10]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3BESH129798 for ; Thu, 11 Apr 2002 16:28:18 +0200 (MET DST) Received: from demokrit.cas.mcmaster.ca (demokrit.cas.McMaster.CA [130.113.68.194]) by ritchie.cas.McMaster.CA (8.11.6+Sun/8.11.6) with ESMTP id g3BESG208049; Thu, 11 Apr 2002 10:28:16 -0400 (EDT) Received: (from kahl@localhost) by demokrit.cas.mcmaster.ca (8.11.6/8.11.6/SuSE Linux 0.5) id g3BEZ3301456; Thu, 11 Apr 2002 10:35:03 -0400 Date: Thu, 11 Apr 2002 10:35:03 -0400 Message-Id: <200204111435.g3BEZ3301456@demokrit.cas.mcmaster.ca> X-Authentication-Warning: demokrit.cas.mcmaster.ca: kahl set sender to kahl@cas.mcmaster.ca using -f From: Wolfram Kahl To: caml-list@inria.fr In-reply-to: <20020410130314.I20228@verdot.inria.fr> (message from Daniel de Rauglaudre on Wed, 10 Apr 2002 13:03:14 +0200) Subject: Re: [Caml-list] Streams References: <200204091809.g39I9TV03521@demokrit.cas.mcmaster.ca> <20020410130314.I20228@verdot.inria.fr> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, Daniel de Rauglaudre 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