From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 335DEBC75 for ; Fri, 18 Feb 2005 23:36:37 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1IMaalh012420 for ; Fri, 18 Feb 2005 23:36:36 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA26180 for ; Fri, 18 Feb 2005 23:36:36 +0100 (MET) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1IMaZ1R014522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 18 Feb 2005 23:36:36 +0100 Received: from ithif59.inf.tu-dresden.de (ithif59 [141.76.75.59]) by tcs.inf.tu-dresden.de (8.12.9/8.12.9) with ESMTP id j1IMaZ86018917 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 18 Feb 2005 23:36:35 +0100 (MET) Received: from tews by ithif59.inf.tu-dresden.de with local (Exim 4.34) id 1D2Gjj-0002LQ-7G for caml-list@inria.fr; Fri, 18 Feb 2005 23:36:35 +0100 To: Ocaml Subject: Re: [Caml-list] Camlp4 with traditional syntax (was: Camlp4 documentation) References: <4215A18C.7040603@barettadeit.com> <4215AD36.1070303@cs.unisa.edu.au> <42161793.7030704@barettadeit.com> From: Hendrik Tews Date: 18 Feb 2005 23:36:35 +0100 In-Reply-To: <42161793.7030704@barettadeit.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) at tcs.inf.tu-dresden.de X-Miltered: at concorde with ID 42166DF4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42166DF3.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 syntax:01 hendrik:01 tews:01 tews:01 baretta:01 expander:01 bypassing:01 expr:01 struct:01 hendrik:01 writes:01 syntactic:01 tu-dresden:01 tcs:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Alex Baretta writes: There is one more issue with Camlp4: it does not allow for quotations to expand to generic syntactic elements. Often, I use quotations which expand to module definitions. I had to implement my own quotation expander, bypassing the limitations of Camlp4 to achieve this. I don't quite understand, what's wrong with let me = <:module_expr< struct $ list of module def's $ end >> in <:str_item< module $some_name$ = $me$ >> ?? Bye, Hendrik