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 AAA03247; Sat, 18 Sep 2004 00:25:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 AAA03210 for ; Sat, 18 Sep 2004 00:25:38 +0200 (MET DST) Received: from appliedminds.com (mail.appliedminds.com [65.104.119.58]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8HMPZ4h004129 for ; Sat, 18 Sep 2004 00:25:37 +0200 Received: from [10.10.10.55] (HELO appliedminds.com) by appliedminds.com (CommuniGate Pro SMTP 4.2) with ESMTP id 593473 for caml-list@inria.fr; Fri, 17 Sep 2004 15:25:32 -0700 Received: from [10.11.15.35] (account jamesl HELO appliedminds.com) by appliedminds.com (CommuniGate Pro SMTP 4.2) with ESMTP id 380662 for caml-list@inria.fr; Fri, 17 Sep 2004 15:25:26 -0700 Message-ID: <414B639D.4060807@appliedminds.com> Date: Fri, 17 Sep 2004 15:22:21 -0700 From: James Lamanna User-Agent: Mozilla Thunderbird 0.6+ (X11/20040421) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Calling parser from inside a parser rule Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 414B645F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; parser:02 parser:02 commands:97 parse:04 grammar:05 load:06 inside:10 inside:10 there:16 filename:83 accepts:17 rule:17 rule:17 calling:17 file:18 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is it possible to call the parser from inside a parser rule? For instance lets say I have a grammar rule which accepts "load [filename]" Now inside this rule, I want to open the file, and parse all the commands in that file using that same parser. Is there a way to do this? Thanks. -- James Lamanna ------------------- 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