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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 96D4A7ED27 for ; Wed, 30 May 2012 15:18:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvIBAHodxk/RVdSuimdsb2JhbABEtAUIIgEBAQoJDQcSBiOCFwEBAQQSAiwBFAcdAQMMBgULDS4hAQERAQUBHAYTGweHWgEDC5pRCQOMK4JwhQ0KGScNV4hxAQUMihhhhUIDlRiKeIMePoQb X-IronPort-AV: E=Sophos;i="4.75,685,1330902000"; d="scan'208";a="160580821" Received: from mail-wi0-f174.google.com ([209.85.212.174]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-MD5; 30 May 2012 15:18:03 +0200 Received: by wibhr14 with SMTP id hr14so3227845wib.9 for ; Wed, 30 May 2012 06:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SsFqqV2UpwYYp2Gfpy+si9vh36pZSWnx4HlXZ6QdyAk=; b=ET9yaRw4B3Nzi/mv4aBpBfohx6ggPz2MDkOsxXh6DvKK8azLeylgxqmWwgzz47gIlI 2cDVyDJEttTGs4OMvE4+C2jtafXX2bIzq3/6+5m9+f6x5Kg47yR7/pQMMrNtlTB27w0F l5dBFr+CM5ygcymRHfRhY3tsZ4iPiTs0V+zqpgtDM172ZETORk4eg+oeIJo8PPfbaUFP Brj0r8qcTo2s2GbQvw6HGSJXHBQWOjD6QKSgSB1fLgym1JqBYqZwJG/LxX5J5rnBh+Cm +NXjI5dqXu8kVMNnhYxR38zG1hKLk/+ejmuS9Fb02eaoxArcqyHg/EDghF1h0nY1yFaX tWDA== MIME-Version: 1.0 Received: by 10.216.198.1 with SMTP id u1mr10717731wen.92.1338383882913; Wed, 30 May 2012 06:18:02 -0700 (PDT) Received: by 10.180.96.35 with HTTP; Wed, 30 May 2012 06:18:02 -0700 (PDT) In-Reply-To: <4FC61595.6070009@frisch.fr> References: <4FC61595.6070009@frisch.fr> Date: Wed, 30 May 2012 09:18:02 -0400 Message-ID: From: Markus Mottl To: Alain Frisch Cc: Hongbo Zhang , caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Re: Syntax extensions without Camlp4 On Wed, May 30, 2012 at 8:41 AM, Alain Frisch wrote: > In addition, there is a growing consensus that the most common uses of > camlp4 (such as code generation driven by type declaration) might be based > on a much simpler approach, and this would actually have advantages for t= he > end-users (like not changing the concrete syntax) > and for developers (much less information to grasp in order to write such= an > extension). I agree that most OCaml developers only need a tiny subset of the powerful but also overly complex features provided by camlp4. These features could surely be provided in a much simpler framework. Making camlp4 an external tool for heavy-duty grammar modifications would make sense to me. I'd rather see a well-supported light-weight solution with AST attributes. Something like MetaOCaml for (runtime) code generation would seem exciting, too. Regards, Markus --=20 Markus Mottl=A0 =A0 =A0 =A0 http://www.ocaml.info=A0 =A0 =A0 =A0 markus.mot= tl@gmail.com