There was one attempt to work with IronPython in code under the path: branches/CipTests/IronPythonTests. You may find here a mini text editor that can execute simple IronPython code.
As there was a need for a command line interpreter, the code was integrated using the latest IronPython code. The C# code that integrates with IronPython seems to not be so compatible with the versions, as IPy 2.0 is based on DLR (Dynamic Language Runtime). This allows the API of IronPython 2.0 to be more generic and expose the DLR interface to work with. This means that with minimal change right now NaroCad will support in the same way any DLR capable language (like IronRuby).
What can you do right now with the IronPython integration?
- you may execute IronPython commands like this "Hello world" program:
from System.Windows.Forms import *
MessageBox.Show("hello from NaroCad")
- you may: execute the lines you write, load a file from disk, or save onto a disk your hard worked program
- pressing "Enter" to any line will execute your line of program, and in case the program will misbehave the exception will be shown to the user
- you can change all the properties of the command line editor like this: panel.CommandLineEditor.ShowLineNumbers = 1; or anything that reflects the CommandLineView public members (so you can hide/show the items in real time). The way to react with NaroCad internal API is a subject of change but this is a fully working concept
- the editor use the file: commandLineHistory.py (or create a blank one if none exists), as the editor default text.
Here is the picture that values 1000 words.