From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 6D4FE7ED45 for ; Fri, 22 Jun 2012 17:53:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIBAPyT5E/RVaC2kGdsb2JhbABFpRmQQwgiAQEBAQkJDQcUBCOCDyICLAE5Aw0FCAECBV0SAQUBV4dbAwuYeIJhCQOPFIUuJw1KiH4BBQyOCIMcA5UsjiQ+gVSCRg X-IronPort-AV: E=Sophos;i="4.77,459,1336341600"; d="scan'208";a="148486996" Received: from mail-gh0-f182.google.com ([209.85.160.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-MD5; 22 Jun 2012 17:53:33 +0200 Received: by mail-gh0-f182.google.com with SMTP id z22so2514997ghb.27 for ; Fri, 22 Jun 2012 08:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=nWiAYVwiC++Biaah6sTyYEYhJEu+UnVyrqDtr4a72uw=; b=X5grI+Un7eZzvYYHGFPipMM0eTwm0C4ffJzXkumgGaOFhvxf08VfsWMRm0dIbTPNbh q7z+yBiG0tmI9TEs3MNNK+9WnZios30AmbzIeLDw2YSqRhbqiRoaSgwSQLmKW98EofCg f980sLG7nTUiJO/baAituwteNdr1VNgf8wCC03zbIsRqgX1RCLW4dG2qdl0d7nUWYkYF PwLs9++N/uIqIPAif4s7uQhXITkWZBfh05bPTH+rCSmsUHMF8/ONgn48M5dnZ4GFxWCp sLkGp1vF/kOpVAWrIgmHtJHC2GLqOWt5u0mobn7Y0WOFhXSUVO2pf49nAUkG7K5iM8ME UhbA== MIME-Version: 1.0 Received: by 10.60.24.67 with SMTP id s3mr2482851oef.54.1340380413754; Fri, 22 Jun 2012 08:53:33 -0700 (PDT) Sender: aaron678@gmail.com Received: by 10.76.114.133 with HTTP; Fri, 22 Jun 2012 08:53:33 -0700 (PDT) Received: by 10.76.114.133 with HTTP; Fri, 22 Jun 2012 08:53:33 -0700 (PDT) Date: Fri, 22 Jun 2012 11:53:33 -0400 X-Google-Sender-Auth: Ofje_7qTW0C0I_bipcbhmRCcAd8 Message-ID: From: Aaron Bohannon To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=e89a8ff1caf86cfda104c311a2a7 Subject: [Caml-list] Compiling with camlp4 extensions --e89a8ff1caf86cfda104c311a2a7 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have been trying to use the new camlp4 to write an OCaml syntax extension. All the examples I have seen so far suggest that I use the extension by passing ocamlc the "-pp" option. But it seems that all the location info for error messages gets lost when I do this unless I catch and report the parse error myself within the extension. Is there some way to get ocamlc to report the parse error at the correct location automatically? - Aaron --e89a8ff1caf86cfda104c311a2a7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hi,

I have been trying to use the new camlp4 to write an OCaml syntax extens= ion.=A0 All the examples I have seen so far suggest that I use the extensio= n by passing ocamlc the "-pp" option.=A0 But it seems that all th= e location info for error messages gets lost when I do this unless I catch = and report the parse error myself within the extension.=A0 Is there some wa= y to get ocamlc to report the parse error at the correct location automatic= ally?

- Aaron

--e89a8ff1caf86cfda104c311a2a7--