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 RAA31714; Tue, 2 Sep 2003 17:23:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 RAA30617 for ; Tue, 2 Sep 2003 17:23:41 +0200 (MET DST) Received: from cetus.henchmonkey.org (p67-70.acedsl.com [66.114.67.70]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h82FNeT28122 for ; Tue, 2 Sep 2003 17:23:40 +0200 (MET DST) Received: from katre by cetus.henchmonkey.org with local (Exim 3.36 #1 (Debian)) id 19uD0O-00005K-00 for ; Tue, 02 Sep 2003 11:23:40 -0400 Date: Tue, 2 Sep 2003 11:23:40 -0400 To: caml-list@inria.fr Subject: Re: [Caml-list] Calling ocamlyacc from ocamlyacc Message-ID: <20030902152340.GA32745@henchmonkey.org> References: <20030901172828.GA24208@henchmonkey.org> <20030902151922.GB4055@roke.freak> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030902151922.GB4055@roke.freak> User-Agent: Mutt/1.5.4i From: katre X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 michal:01 moskal:01 wrote:03 lexbuf:03 ocamlyacc:05 ocamlyacc:05 functions:05 functions:05 grammar:05 seems:05 define:05 define:05 quite:06 problem:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Michal Moskal wrote: > > You can define several start symbols in your grammar. Parsing functions > are defined for each. You can also define several rule ... in your lexer > (lexing functions are defined for each). Hope that helps, I can't help > more, since I don't quite understand nature of your problem. > Right, but is there a way, in a ocamlyacc action, to switch which lexer rule you're using? That seems to be the main part I am missing. Or if I could access the lexbuf directly, I could also use that. John ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners