From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 713D2BB83 for ; Fri, 21 Jul 2006 02:31:40 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k6L0VdnB005752 for ; Fri, 21 Jul 2006 02:31:39 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA11834 for ; Fri, 21 Jul 2006 02:31:38 +0200 (MET DST) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k6L0VXlm005730; Fri, 21 Jul 2006 02:31:38 +0200 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 9FDF5D90F72; Thu, 20 Jul 2006 20:31:31 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by frontend3.internal (MEProxy); Thu, 20 Jul 2006 20:31:34 -0400 X-Sasl-enc: NC2O/4xa+hKL9X4OS8BM15rl2cwh2jP4RekhBiiVaXRL 1153441885 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by mail.messagingengine.com (Postfix) with ESMTP id 01F4F85F4; Thu, 20 Jul 2006 20:31:24 -0400 (EDT) Date: Thu, 20 Jul 2006 17:31:29 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@localhost To: Alain Frisch Cc: Martin Jambon , =?ISO-8859-1?Q?B=FCnzli_Daniel?= , Eric Breck , caml-list@inria.fr Subject: Re: Camlp4 mysteries (was Re: On language extensions (was Re: [Caml-list] global record)) In-Reply-To: <44C013EC.2080201@inria.fr> Message-ID: References: <51E3580C-02A1-4344-A5AA-862B580015F1@cs.cornell.edu> <60FD7628-7F4E-4765-88AD-B3AB7DA987D0@epfl.ch> <44C013EC.2080201@inria.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at concorde with ID 44C0206B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44C02065.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; camlp:01 frisch:01 syntax:01 syntax:01 syntactical:01 lident:01 wrote:01 wrote:01 caml-list:01 define:01 jambon:01 jambon:01 simpler:02 construct:02 alain:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Fri, 21 Jul 2006, Alain Frisch wrote: > Martin Jambon wrote: >> Otherwise it's possible to define well-disciplined syntax extensions. >> For example, if each new syntax construct (new rule) is forced to start >> with a unique, registered keyword and end with "end", then different >> syntax extensions that follow this rule should play well together. > > Except that any new keyword can potentially break existing code. You'd > need some other syntactical convention. Do you mean keyword as opposed to LIDENT "mylident"? Then something like "<:mylident<" but simpler would be better. Maybe ``mylident ... end Martin -- Martin Jambon, PhD http://martin.jambon.free.fr