How to make an application scriptable in Linux

Posted by arx on Stack Overflow See other posts from Stack Overflow or by arx
Published on 2010-03-12T15:14:59Z Indexed on 2010/03/12 15:17 UTC
Read the original article Hit count: 218

Filed under:
|

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)

© Stack Overflow or respective owner

Related posts about linux

Related posts about scripting