[Gambas-devel] Gambas and LUA

Benoît Minisini gambas at ...1...
Wed Dec 30 17:06:39 CET 2009


> In my domotica software projects I have the need to add some sort of
> scripting facility, so end-users can write scripts which can be parsed
> and executed on the fly..
> 
> If Time = "08:00PM" then SwitchLight("Porch", On)
> 
> That sort of stuff.
> 
> Gambas doesn't have this flexibility, you have Eval() and thats it
> basically. (maybe I wrote my project in the wrong language to begin with)
> ;-) I'm only joking
> 
> Did someone already had a peek at LUA?
> And the possible integration/binding of it with Gambas?
> 
> http://www.lua.org/docs.html
> 
> Regards,
> Ron_2nd.
> 

"#!/usr/bin/gbs2" putted at the beginning of an executable text file allows 
you to write scripts in Gambas.

-- 
Benoît Minisini




More information about the Devel mailing list