Is there a fully managed (.NET) Lua interpreter?

Viewed 10389

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.

3 Answers

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).

Related