From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA21708; Fri, 19 Oct 2001 13:28:16 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA21659 for caml-list@pauillac.inria.fr; Fri, 19 Oct 2001 13:28:15 +0200 (MET DST) 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 LAA19387 for ; Fri, 19 Oct 2001 11:10:52 +0200 (MET DST) Received: from chopin.ai.univie.ac.at (chopin.ai.univie.ac.at [131.130.174.170]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f9J9Aq529804 for ; Fri, 19 Oct 2001 11:10:52 +0200 (MET DST) Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id LAA28734; Fri, 19 Oct 2001 11:10:34 +0200 Date: Fri, 19 Oct 2001 11:10:33 +0200 From: Markus Mottl To: "Rafael 'Dido' Sevilla" Cc: Caml List Subject: Re: [Caml-list] putting stuff in an ocamlyacc-generated mli file Message-ID: <20011019111033.A28200@chopin.ai.univie.ac.at> References: <20011019160426.A11610@team.ph.inter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011019160426.A11610@team.ph.inter.net>; from sevillar@team.ph.inter.net on Fri, Oct 19, 2001 at 16:04:26 +0800 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 19 Oct 2001, Rafael 'Dido' Sevilla wrote: > Unfortunately, compiling the compiler with this causes it to choke > saying that Parser.Undef_sym is not found. It's not in the generated > parser.mli file, of course. So apart from editing that (automatically > generated) file manually, how do I get ocamlyacc to put them there? You can define the exception externally in a third file (e.g. parser_defs.mli) to refer to it from both outside and inside the .mly-file. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr