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=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 252C9BBAF for ; Thu, 12 Mar 2009 10:38:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtABAJt0uEnRVduumGdsb2JhbACUej8BAQEBAQgJDAcRrEmBBo8kAQMBA4QKBoMp X-IronPort-AV: E=Sophos;i="4.38,349,1233529200"; d="scan'208";a="36445990" Received: from mail-ew0-f174.google.com ([209.85.219.174]) by mail4-smtp-sop.national.inria.fr with ESMTP; 12 Mar 2009 10:38:31 +0100 Received: by ewy22 with SMTP id 22so346119ewy.27 for ; Thu, 12 Mar 2009 02:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:cc:x-mailer; bh=vKCebQhdGpLdsMH1K6NUzRl+kV3FH7zCVsnCuAk+UcY=; b=H8tlro7n3/ppjPBw51zBAmVU1L2o0JqwHTgQ7mzn0BkmfIke+I/xg6/NP7erHpmsrm EvbG0Hw7MNebBLI4wAONZ1lBFf7kv8vgIlTGiRcI2gubmnu50oqs00Vat8bfLmKSlMxY xeLUa61pWeV/0PWnd8ZkTdtfm6ZraHxaThKDQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:cc:x-mailer; b=av9bMCw1gUmPpPvTpRe4VmN3CaDgwVKsYQ4YHuSOq5LKyRtR+HeyOJ10fA6YEuaO11 ecHWrv1oX3iygygVpQA5TVd4HSdJFUvQ3BuV3GPI8phuEoVNEeqFKiG4FjeSPCpfgJ+X D+9UAHnTApWv9tsMy2BBmDA6jZXHY/xZMtU2E= Received: by 10.216.18.205 with SMTP id l55mr3865249wel.194.1236850711504; Thu, 12 Mar 2009 02:38:31 -0700 (PDT) Received: from ?10.10.30.7? (127.Red-88-3-8.dynamicIP.rima-tde.net [88.3.8.127]) by mx.google.com with ESMTPS id 28sm443012eye.29.2009.03.12.02.38.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 02:38:31 -0700 (PDT) References: <20BA0B67-42DD-4E9F-9165-741D91ECCF44@gmail.com> <527cf6bc0903120213k731ee9f5xb6b1104f12f001b@mail.gmail.com> Message-Id: <30261F42-54CA-4D16-9866-25A3E2646FAD@gmail.com> From: Joel Reymont To: blue storm In-Reply-To: <527cf6bc0903120213k731ee9f5xb6b1104f12f001b@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Caml-list] camlp4: precedence, LEFTA, NONA, etc. Date: Thu, 12 Mar 2009 09:38:28 +0000 Cc: "O'Caml Mailing List" X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; camlp:01 camlp:01 expr:01 ocaml:01 'and':98 storm:98 wrote:01 precedence:01 precedence:01 caml-list:01 grammar:02 define:02 lefta:02 blue:96 precedent:05 What about this quote from the camlp4 manual? "An entry is composed of entry precedence levels, the first one being the least precedent and the last one the most." I'm assuming that my expr counts as one rule where '+' and '=' have lesser precedence than 'and' and '*' since those follow after. On Mar 12, 2009, at 9:13 AM, blue storm wrote: > To my understanding, precendence levels correspond to the level you > define in the grammar, in the given order : in your case, you have > "=", "+" at the same level, with higher precendence than "And" and > "*". --- http://tinyco.de Mac, C++, OCaml