From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1EE82BC88 for ; Mon, 7 Feb 2005 21:29:37 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j17KTata013395 for ; Mon, 7 Feb 2005 21:29:36 +0100 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 VAA23035 for ; Mon, 7 Feb 2005 21:29:36 +0100 (MET) Received: from smtp812.mail.sc5.yahoo.com (smtp812.mail.sc5.yahoo.com [66.163.170.82]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j17KTYq8013384 for ; Mon, 7 Feb 2005 21:29:35 +0100 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@63.194.18.166 with plain) by smtp812.mail.sc5.yahoo.com with SMTP; 7 Feb 2005 20:29:30 -0000 Message-ID: <4207D030.9000806@rftp.com> Date: Mon, 07 Feb 2005 12:31:44 -0800 From: Robert Roessler Organization: Robert's High-performance Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] OCaml expression evaluated in a OCaml program References: <4207705F.4030501@nemoworld.info> <4207948D.6030705@yahoo.fr> <420793B9.3020504@neometsys.fr> <200502071647.29407.jon@jdh30.plus.com> In-Reply-To: <200502071647.29407.jon@jdh30.plus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4207CFB0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4207CFAE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 wrote:01 bsd-style:01 ...:98 expression:01 defined:01 implemented:02 expressions:03 permissive:03 tutorials:03 tutorials:03 embedding:04 scheme:04 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Jon Harrop wrote: > ... > If you don't really want to execute ocaml code but, rather, simple expressions > then you can write your own interpreter quite easily. Many tutorials cover > this. If you want to provide access to a few calls in your interpreter then > you can simply implement them in your own little language. There are many > tutorials on ocaml which describe simple interpreters. Or there is Ocs (http://will.iki.fi/software/ocs/) - from their page: "Ocs is an implementation of Scheme, as defined by R5RS. It is implemented entirely in OCaml and is suitable for embedding in OCaml programs. It is free, open source software, distributed under a permissive (two-clause) BSD-style license." Robert Roessler robertr@rftp.com http://www.rftp.com