CSharp.lua icon indicating copy to clipboard operation
CSharp.lua copied to clipboard

This is a source translator but not a compiler!

Open 2dpdlja496or43iq opened this issue 2 years ago • 2 comments

I can't reference .NET assemblies like the real dotnet. What it does is simply translating the C# source into Lua. It will not work without the source. The developer said people has to use a decompiler to decompile the DLL to C# source before able to use this compiler. Why don't this compiler do this automatically for the users? I only want able to reference .NET assemblies, what happened under the hood I don't care!

2dpdlja496or43iq avatar Apr 23 '23 05:04 2dpdlja496or43iq

The initial design was a source-to-source translator, similar to Scala.js in naming convention. It uses Roslyn to parse C# source code, and Roslyn does not have the ability to decompile DLLs. Therefore, decompilation support was not considered.

yanghuan avatar Apr 25 '23 09:04 yanghuan

I'm poking a dead issue here, but the proper term would be a "transpiler"

melodicore avatar Apr 01 '24 12:04 melodicore