0

We have a large codebase in c++ and some .NET. Visual studio 2010.

A main part of the application is a node graph based around the actor model. The nodes are state machines and turn booleans and numeric inputs into boolean and numeric outputs, which may be connected to the input of another node and so on.

The system comprise many types of nodes with various configuration options.

A customer has asked for a rather complex and flexible set of node types, some of which may not be completely clarified until the system is in production. I hope to implement this entire thing by creating a new node type which accepts a python (or similar) text as its configuration.

Python was suggested by the stakeholder, but not necessarily the only option. What options exist to parse and execute another high level language inside a c++ code base in a VBA-like fashion?

1

1 Answer 1

1

You have quite some options here:

Lua (http://www.lua.org/)

Python (http://www.codeproject.com/Articles/11805/Embedding-Python-in-C-C-Part-I)

An alternative to python: Pypy(http://pypy.org/)

Sign up to request clarification or add additional context in comments.

1 Comment

That looks promising. I will take a look at it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.