If you are talking about a scripting language, this is hard to do. I am working on one for my GUI and it is fantastically complicated. You will have to make your own executer, This will involve alot of IF-THEN and DATA statements. The GUI GIMI (which can be found at neozones.com) has a powerful scripting language and the source code is included, take a look at it, it might give you some ideas.