lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Apr 1, 2012, at 5:10 PM, Petite Abeille wrote:

> 
> On Apr 1, 2012, at 10:26 PM, Egil Hjelmeland wrote:
> 
>> Microlight [1] 
>> [1]https://github.com/stevedonovan/Microlight
> 
> Microlight? Micro? And light? Perfect.
> 
> Should be a piece of cake to use and package, no?
> 

> Oh, well… what about packaging it as one file?
> 
> $ cat ml.lua mlx.lua test-ml.lua > test-all.lua

http://lua-users.org/lists/lua-l/2012-02/msg00609.html

http://place.org/~nop/soar-0.0.tar.gz

Output:

> local function _main()
> require "ml"
> require "loml"
> <body of script goes here>
> end
> package.preload["ml"] =function()
> <body of ml>
> end
> package.preload["loml"=...
> end
> _main()