I am evaluating the possibility to add a "command window" to my application.
I would like to implement something similar to MATLAB command window.
I have an application dealing with particular objects.
The user can operates with this objects using the GUI, load objects, save objects, modify objects and so on.
What I would like to implement is a command window integrated with my GUI where the user instead of using the GUI menus can perform some operations typing them in the command window.
I would like to allow the user to choose between digiting commands in the command window or using the GUI.
e.g. instead of clicking on file --> Open the user should be able to write something like
myobjects = load_objects('filename')
obj1 = myobjetcs[1]
viewobject(obj1)
saveobjects(myobjects, 'filename')
....
I would like to allow the user to have a set of functions accessible using the command window.
Anyone already did something similar?
Any suggestion? What should I use? A scripting engine? An expression evaluator?