How to make an application scriptable in Linux
- by arx
I've written an application in C++ that takes a complex binary file format and translates it into human-readable text. Having edited the text you can recompile it back into the binary file format.
This would be more useful if the application's internal object model was scriptable. On Windows I'd expose the objects using COM or .Net but I want this to work on Linux. I could embed a scripting language but that's a fair bit of work, and limits users to the scripting language I choose. Ideally, I'm looking for some way of exposing a scriptable DOM from my application that is:
Widely support in scripting languages (without writing language-specific wrappers)
Cross-platform (but Linux support is most important)
In-process (but this isn't essential)