Reputation: 211
Does 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.
Upvotes: 21
Views: 11004
Reputation: 506
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
Upvotes: 5
Reputation: 16119
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).
Upvotes: 3
Reputation: 4219
There another project called Lua.Net
Check Aluminum Lua, It is completely written in C#.
Upvotes: 10