Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve thi开发者_如何学Cs questionDoes anyone know if there is a fully managed (.NET) Lua interpreter? The regular source can be compiled with managed extensions for desktop .NET, but it can't be embedded in a Silverlight application.
There another project called Lua.Net
Check Aluminum Lua, It is completely written in C#.
I have written a Lua interpreter for .NET
It's a complete rewrite, it uses Irony for parsing and supports most of Lua 5.2 features, even if it lacks debug functions. Also only basic functions are provided, but custom ones can be easily written. http://github.com/frabert/NetLua
I did a complete line-for-line port of Lua 5.1.4 to C# including the libraries and tools, it's been used successfully with Unity and partially with XNA (minus the bits that need reflection):
http://www.ppl-pilot.com/kopilua.aspx
You might wanna check GitHub though, I believe it's been forked and updated by others since (although I'm not sure if they went to the same lengths I did to make sure it was a 100% faithful port).
精彩评论