I know it is possible to compile the Lua
code using LuaC as described here:
luac is the Lua compiler. It translates programs written in the Lua programming language into binary files that can be loaded and executed with lua_dofile in C or with dofile in Lua.
The problem is: I need to create an application in .Net
(more specifically in C#
) that will receive an input of multiple 'regular' *.lua files and then compile all of them to new files.
I ended up having to call LuaC.exe from inside my application.
My solution was doing the following: