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 JAA28462; Thu, 29 Apr 2004 09:42:44 +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 JAA28439 for ; Thu, 29 Apr 2004 09:42:43 +0200 (MET DST) Received: from hotmail.com (bay9-f5.bay9.hotmail.com [64.4.47.5]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3T7ggYM004560 for ; Thu, 29 Apr 2004 09:42:42 +0200 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 29 Apr 2004 00:42:41 -0700 Received: from 192.174.21.220 by by9fd.bay9.hotmail.msn.com with HTTP; Thu, 29 Apr 2004 07:42:41 GMT X-Originating-IP: [192.174.21.220] X-Originating-Email: [max_powers280@hotmail.com] X-Sender: max_powers280@hotmail.com From: "Max Powers" To: skaller@users.sourceforge.net Cc: caml-list@inria.fr Subject: Re: [Caml-list] Calling Ocaml from Python Date: Thu, 29 Apr 2004 17:12:41 +0930 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Apr 2004 07:42:41.0316 (UTC) FILETIME=[8D22E640:01C42DBD] X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 python:01 2004:99 2004:99 swig:01 python:01 swig:01 'cause:01 gui:01 apps:01 ocaml:01 ocaml:01 280:98 jsp:98 parser:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 2004-04-29 at 16:56, skaller wrote: >On Thu, 2004-04-29 at 15:58, Max Powers wrote: > > > So as I see it I've got the following options: > > 1) write the parser in ocaml. Wrap ocaml in C then wrap that using SWIG >into > > a python module. > > 2) write the parser in C. Use SWIG to generate Ocaml and python modules. > > 3) write the parser in python. Use Pycaml to call the python module from > > Ocaml. > >Ocaml is well suited to parsing and analysing >the parsed terms. If you head for (2) or (3) one needs >to ask why bother using Ocaml at all? Ah, that's 'cause I've got a huge application written (by others, I'm just the GUI bunny) in Ocaml. They're not real happy with the current parser (it's kind of crufty I believe), so would be happy to replace it, so long as the data is available in the Ocaml world. Parsing config files isn't the apps main job :). -Max _________________________________________________________________ Personalise your phone with chart ringtones and polyphonics. Go to http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp ------------------- 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