From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 67C51BB84 for ; Tue, 1 Jul 2008 18:34:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkYAAN/4aUjUGypAmmdsb2JhbACBW5BVAQEBAQEIBQgHEQOfaA X-IronPort-AV: E=Sophos;i="4.27,732,1204498800"; d="asc'?vcf'?scan'208";a="26915768" Received: from smtp7-g19.free.fr ([212.27.42.64]) by mail4-smtp-sop.national.inria.fr with ESMTP; 01 Jul 2008 18:34:19 +0200 Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id AB02A322847; Tue, 1 Jul 2008 18:34:18 +0200 (CEST) Received: from Tocksi.local (lns-bzn-48f-81-56-220-129.adsl.proxad.net [81.56.220.129]) by smtp7-g19.free.fr (Postfix) with ESMTP id 5CE7E32282C; Tue, 1 Jul 2008 18:34:18 +0200 (CEST) Message-ID: <486A5C84.3080005@univ-savoie.fr> Date: Tue, 01 Jul 2008 18:34:12 +0200 From: Christophe Raffalli User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Caml Mailing List Cc: Emmanuel Onzon Subject: ocaml parser X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE68A640FD224EDA34ADB73F3" X-Spam: no; 0.00; christophe:01 raffalli:01 christophe:01 raffalli:01 univ-savoie:01 ocaml:01 parser:01 ocaml:01 bug:01 parser:01 -pp:01 camlp:01 ocamlc:01 ocamlc:01 -pp:01 X-Attachments: cset="utf-8" name="Christophe_Raffalli.vcf" name="Christophe_Raffalli.vcf" type="application/pgp-signature" name="signature.asc" name="signature.asc" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE68A640FD224EDA34ADB73F3 Content-Type: multipart/mixed; boundary="------------040700020509060301080603" This is a multi-part message in MIME format. --------------040700020509060301080603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Dear list members and ocaml developper, Is it a bug to have any difference between both ocaml parser (with "-pp=20 camlp4o" or without) ? I expected that everything that compiles with ocamlc should compile with = ocamlc -pp camlp4o (the opposite is not true and does not need to be true) which is not the = case. And a secondary question : why to have two parsers (except maybe for=20 bootstraping) ? Here is an example: -------- test.ml ------ let parser =3D 0 -------- en test.ml -- Tocksi:pml christopheraffalli$ ocamlc -c test.ml Tocksi:pml christopheraffalli$ ocamlc -c -pp camlp4o test.ml File "test.ml", line 1, characters 0-3: Parse error: [binding] expected after [opt_rec] (in [str_item]) Preprocessor error (remark: this is the error message from ocaml 3.10, the error from 3.09=20 was clearer). Cheers, Christophe --=20 Christophe Raffalli Universite de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tel: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution=20 can check this signature. The public key is stored on www.keyserver.net --------------------------------------------- --------------040700020509060301080603 Content-Type: text/x-vcard; charset=utf-8; name="Christophe_Raffalli.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Christophe_Raffalli.vcf" begin:vcard fn:Christophe Raffalli n:Raffalli;Christophe org:LAMA (UMR 5127) email;internet:christophe.raffalli@univ-savoie.fr title;quoted-printable:Ma=3DC3=3DAEtre de conf=3DC3=3DA9rences tel;work:+33 4 79 75 81 03 note:http://www.lama.univ-savoie.fr/~raffalli x-mozilla-html:TRUE version:2.1 end:vcard --------------040700020509060301080603-- --------------enigE68A640FD224EDA34ADB73F3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIalyJi9jr/RgYAS4RAjlJAKCAb6cWQGotaxWFridp2RwNgKxZIwCfcxJ7 Ruw4pUOthgh5FsQMCTjkSr8= =ibN2 -----END PGP SIGNATURE----- --------------enigE68A640FD224EDA34ADB73F3--