[Gambas-devel] Gambas and LUA

Ron ron at ...572...
Thu Dec 31 10:49:21 CET 2009


Benoît Minisini wrote:
>>> 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.
>>
>>     
>
> "put", not "putted". It is an irregular verb, isn't it?
>
>   
Thanks, I had looked at it in the past, looking into it again.

I think this is a better, more universal shebang entry, my gambas 
doesn't live in /usr/bin/

#! /usr/bin/env gbs2


Regards,
Ron_2nd.




More information about the Devel mailing list