From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 1E009BC0B for ; Sun, 14 Jan 2007 01:40:04 +0100 (CET) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0E0e33c005159 for ; Sun, 14 Jan 2007 01:40:03 +0100 Received: by nf-out-0910.google.com with SMTP id m19so1597024nfc for ; Sat, 13 Jan 2007 16:40:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EkFsk9OIHWur4Skog249DX5xAl5tKdjRW+kTVJ7Z2pHWUP6VSUY4VwhOW7vJKyRlGF3pOpBNshjFsg+G6aIeASI4kkRbeMGLY/en3MPxHh9jBdeRz31oJVRDN+6CSxh5q9yU6W0zKzzlr5Xr+ae0RyhEN1l1YDlT3lezGXIr2us= Received: by 10.82.118.2 with SMTP id q2mr375254buc.1168735201819; Sat, 13 Jan 2007 16:40:01 -0800 (PST) Received: by 10.82.152.3 with HTTP; Sat, 13 Jan 2007 16:40:01 -0800 (PST) Message-ID: <9d3ec8300701131640q548618c7pdb298ffe922a641d@mail.gmail.com> Date: Sun, 14 Jan 2007 01:40:01 +0100 From: "Till Varoquaux" To: skaller Subject: Re: [Caml-list] ocamlyacc: named attributes Cc: caml-list@inria.fr In-Reply-To: <1168729157.26042.7.camel@rosella.wigram> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1168729157.26042.7.camel@rosella.wigram> X-j-chkmail-Score: MSGID : 45A97BE3.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45A97BE3.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlyacc:01 ocamlyacc:01 non-terminal:01 beginner's:01 ocaml:01 bug:01 sourceforge:01 beginners:01 wrote:01 grammar:01 caml-list:01 caml-list:01 bin:01 caml:02 caml:02 Hmm, Probably a dumb question, but: why not use Menhir? It's supposedly strictly more powerfull than ocamlyacc and has this feature. Till On 1/13/07, skaller wrote: > What is involved in changing Ocamlyacc to allow names instead > of numbers? Use of numbered attributes is inconvenient when refactoring > a grammar. > > The simplest use would be: > > fred: one two { $one, $two } > > where the name of a non-terminal can be used instead > of its index, provided it is unique. > > -- > John Skaller > Felix, successor to C++: http://felix.sf.net > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >