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 SAA22002; Wed, 28 Jul 2004 18:03:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA21598; Wed, 28 Jul 2004 18:03:43 +0200 (MET DST) Received: from quincy.inria.fr (quincy.inria.fr [128.93.8.52]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i6SG3BSH006570; Wed, 28 Jul 2004 18:03:11 +0200 Received: by quincy.inria.fr (Postfix, from userid 23861) id 931CD11C5C8; Wed, 28 Jul 2004 18:03:11 +0200 (CEST) Date: Wed, 28 Jul 2004 18:03:11 +0200 From: Michel Mauny To: Richard Jones Cc: caml-list@inria.fr, caml-bugs@inria.fr Subject: Re: [Caml-list] Slight parsing difference with/without -pp "camlp4o" Message-ID: <20040728160311.GA24587@quincy.inria.fr> Reply-To: Michel.Mauny@inria.fr References: <20040720092114.GA11136@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040720092114.GA11136@redhat.com> User-Agent: Mutt/1.4.1i X-Miltered: at concorde with ID 4107CE3F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 -pp:01 camlp:01 camlp:01 conforms:01 bug:01 2004:99 3.07:01 ocamlc:01 ocamlc:01 -pp:01 htmlman:01 ocaml:01 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hum, according to the grammar given at http://caml.inria.fr/ocaml/htmlman/manual008.html, this should be accepted by ocaml. Either the spec is too large, or the ocaml parser is too restrictive (and camlp4o conforms to the spec, here). I'm Cc-ing to the ocaml bug tracking system. Thanks for the report, -- Michel Richard Jones wrote/écrivait (Tue, Jul 20, 2004 at 10:21:14AM +0100): > [This is with OCaml 3.07 - not checked with 3.08] > > --------------------------------------------------------- pptest.ml -- > let f = fun (year, week) as yw -> 1 > ---------------------------------------------------------------------- > > $ ocamlc -c pptest.ml > File "pptest.ml", line 1, characters 25-27: > Syntax error > > But ... > > $ ocamlc -pp "camlp4o" -c pptest.ml > $ > > Rich. ------------------- 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