From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 5874F7F798 for ; Wed, 18 Feb 2015 09:07:55 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.09,595,1418079600"; d="scan'208";a="122233947" Received: from adijon-652-1-86-243.w90-56.abo.wanadoo.fr (HELO alcazar2) ([90.56.45.243]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 18 Feb 2015 09:07:54 +0100 Date: Wed, 18 Feb 2015 09:07:54 +0100 From: Maxence Guesdon To: caml-list@inria.fr Message-ID: <20150218090754.10540421@alcazar2> Organization: INRIA X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Caml-list] Camlp4 and [@@ attributes Hello, On the following example (in p4.ml): type t = Foo [@@attribute blabla] the following command fails due to camlp4 not handling [@@ attributes: $ ocamlfind ocamlc -package js_of_ocaml.syntax -syntax camlp4o p4.ml File "p4.ml", line 1, characters 9-12: Parse error: [semi] expected after [str_item] (in [implem]) File "p4.ml", line 1: Error: Error while running external preprocessor Command line: camlp4 '-I' '/home/guesdon/.opam/4.02.1/lib/ocaml/camlp4' '-I' '/home/guesdon/.opam/4.02.1/lib/js_of_ocaml' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'pa_js.cmo' 'p4.ml' > /tmp/ocamlpp1dd80a Is there a special invocation of camlp4 to make it accept the [@@ syntax ? Maxence