From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1399CBCAB for ; Fri, 27 May 2005 11:02:54 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4R92rVu031305 for ; Fri, 27 May 2005 11:02:53 +0200 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 LAA30355 for ; Fri, 27 May 2005 11:02:53 +0200 (MET DST) Received: from mail.barettadeit.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4R92qi9031300 for ; Fri, 27 May 2005 11:02:53 +0200 Received: from [10.0.0.10] (alex.barettalocal.com [10.0.0.10]) by mail.barettadeit.com (Postfix) with ESMTP id 8F66F803754A for ; Fri, 27 May 2005 11:02:52 +0200 (CEST) Message-ID: <4296E23C.4050609@barettadeit.com> Date: Fri, 27 May 2005 11:02:52 +0200 From: Alex Baretta User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ocaml Subject: Re: [Caml-list] Limitations on $n in ocamlyacc? References: <4296D938.30901@barettadeit.com> In-Reply-To: <4296D938.30901@barettadeit.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4296E23D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4296E23C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 ocamlyacc:01 baretta:01 token:01 notation:01 ocamlyacc:01 syntax:01 ...:98 ...:98 wrote:01 unbound:01 unbound:01 mly:02 semantic:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: Alex Baretta wrote: > What is the limit on the number of token values accessible with the $n > notation in ocamlyacc semantic actions? I'm asking because I'm > consistently getting ocamlyacc errors like the following, which I can't > make sense of. > > ocamlyacc: e - line 96 of "xcaml_dictionary_yacc.mly", $5 is unbound The obvious answer is... ... PEBKAC! The was one unterminated semantic actions tens of lines above the spot where the ocamlyacc was unable to proceed. Casually, the syntax production contained 4 symbols; hence, the unbound $5... Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project