There is a luainterface project that is very good, so that the. NET class library can be used in the Lua language, and the objects and methods in the class library can be used directly.
There is also a Lua class library, which enables Lua to support features similar to those derived from Oo. If we can combine it with luainterface, it will be more like "Lua. Net. In Lua, you can use it in a new "Lua object" from the. NET object.
In this way, add an extension to the dynamic compilation of C # in Lua, which can directly call the "regular dynamic function library" in Lua (for example, Windows DLL, so file in Linux .) Finally, combine Lua with Bash to achieve my ultimate goal: directly call the "regular dynamic function library" function in the sh script.
Note: Regular dynamic function libraries are library files that do not need special processing, such as Windows APIs and Standard C function libraries.