Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 16, 2005
- 602 views
Bernie Ryan wrote: > > Matt Lewis wrote: > > > > http://www14.brinkster.com/matthewlewis/projects.html#interpreter > > > > Matt: > > I have look at your Euscript in the past but I > have never been able to figure out how to use it. > Could'nt you show some simple examples that everyone > could understand other than the users that wrote it. > I think using it is rather simple. The script.ex that comes with it shows a simple, interactive use that allows you to change a couple of variables. This shows the basics of setting up a couple of routines that can be called from within scripts using add_routine(). For a more involved example, you can check out wxEDB. The user can create forms and attach events. The scripting is set up through wxedbscript.e. I had to wrap some Win32Lib routines, because that's how EDB started out. I use the concept of different scripts--basically, the scripts from one form shouldn't interact with another's. Scripts are executed by do_event() in wxedbform.e. Matt Lewis