Browse thread
[Caml-list] Calling Ocaml from Python
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] Calling Ocaml from Python |
On Thu, 2004-04-29 at 13:09, Max Powers wrote: > What I'm hoping is that someone on the list has tried this sort of thing > before and can give a little advice on the best way forwards (and hopefully > reduce the number of blind alleys I explore!). There is an Ocaml module in SWIG which may be useful to you. It sounds like you basically only need to call a single Ocaml parser function from Python to do the parsing which should be trivial. More difficult will be interpreting the parser output: that will be some Ocaml data structure like a parse tree you'll need to walk somehow from Python. On way to do that might be to get the Ocaml parse to build a parse tree made out of PyObjects. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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