static void Main(string[] args) { Lua lua = new Lua(); lua.DynamicContext.print = (LuaFunction)print; lua.DynamicContext.read = (LuaFunction)read; MathLibrary.AddMathLibrary(lua.Context); IoLibrary.AddIoLibrary(lua.Context); lua.DoFile("life.lua"); while (true) { lua.DoString(Console.ReadLine()); } }