Hi Adam,
I think that road is well traveled [2]. Considering what is available,
embedding a big complicated Python interpreter might actually be easier
than embedding a simple little Tcl interpreter.
[2]:
http://www.adacore.com/adaanswers/gems/gem-106-lady-ada-kisses-python-part-2/
I've also checked
http://docs.adacore.com/gnatcoll-docs/scripting.html#the-python-language
and it looks like there might be OO templates (the Console class
wrapper) to make this engineering task nice. Someone's gotta try.. :)
The big work from my experience always came from wrapping low level
objects into a "nice" but robust class design while maintaining the
proper ownership of objects (classical topic coming up when things
crash..). Automatic wrapping seems to be an art, after attempts with
Boost (no comment..) and SWIG a few years ago I still ended up doing it
as described in the Python docs ("Extending and embedding").
Greetings,
- Martin
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss