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 VAA04339; Thu, 8 Apr 2004 21:11:22 +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 VAA04307 for ; Thu, 8 Apr 2004 21:11:21 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from poincare (pcp01305480pcs.pimaco01.az.comcast.net [68.63.190.172]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i38JCEjq006842 for ; Thu, 8 Apr 2004 21:12:14 +0200 Received: from poincare ([127.0.0.1] helo=localhost ident=trch) by poincare with esmtp (Exim 3.36 #1 (Debian)) id 1BBevd-0001I4-00; Thu, 08 Apr 2004 21:11:09 +0200 Date: Thu, 08 Apr 2004 21:11:04 +0200 (CEST) Message-Id: <20040408.211104.30385721.debian00@tiscali.be> To: jgoerzen@complete.org Cc: vsl@ontil.ihep.su, caml-list@inria.fr Subject: Re: [Caml-list] Dynamically evaluating OCaml code From: Christophe TROESTLER In-Reply-To: <20040407203938.GC26323@excelhustler.com> References: <20040407203938.GC26323@excelhustler.com> Organization: None X-Spook: Ortega ASDIC virus industrial espionage industrial intelligence Audiotel INS Sears Tower import arrangements X-Mailer-URL: http://www.mew.org/ X-Operating-System: GNU/Linux (http://www.linux.org/) X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Mailer: Mew version 4.0.61 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dynamically:01 troestler:01 tiscali:99 toploop:01 formatter:01 parsetree:01 lacks:01 chris:01 bool:01 bool:01 christophe:01 ocaml:01 ocaml:01 toplevel:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 177 On Wed, 7 Apr 2004, John Goerzen wrote: > > [...] I'm looking at being able to let people insert OCaml > expressions directly into otherwise plain-text config files. Maybe Toploop.execute_phrase : bool -> Format.formatter -> Parsetree.toplevel_phrase -> bool may help you but it lacks a bit of doc (I think some time ago the question was asked on the ML, so checking the archives may be useful). My 2¢, ChriS ------------------- 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