The usual approach is for C# to be compiled to IL, and then that IL is executed by the .NET WASM bootstrapper on the client side web browser. It sounds like what you want is for the C# to be compiled directly to WASM, or for the IL to be trans-piled into WASM, is that correct?
Or are you really looking for a library that lets you write the WASM op-codes directly? No need to compile any of your own C# code?
Sounds like an interesting project whatever you are working on that has a custom language that needs to compiled into WASM.
As a complete outsider, the way I would approach it is to take advantage of Emscripten which take LLVM output and makes it into WASM, and then look at SharpLang or similar which takes C# and drives LLVM. Yeah, I know instead of just having one problem, now I have two problems with potentially large learning curves.
Hopefully someone else with much better Google-fu can make a suggestion for how to take a custom language and have it compiled into WASM.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.