transpiler icon indicating copy to clipboard operation
transpiler copied to clipboard

Console Errors When translating from JS

Open amitguptagwl opened this issue 6 years ago • 6 comments

I tried to translate nimn.js in prolog and other languages. But it gives so many errors on console. Is there any guide which can help me?

amitguptagwl avatar Jun 10 '18 13:06 amitguptagwl

@amitguptagwl did you mange to find a way to use this?

metasonic avatar Jul 13 '18 05:07 metasonic

nope :(

amitguptagwl avatar Jul 13 '18 07:07 amitguptagwl

@jarble Any idea what's causing this? Thanks:d

metasonic avatar Jul 14 '18 06:07 metasonic

I saw errors on comments and numbers... js to c#

beppe9000 avatar Feb 15 '19 01:02 beppe9000

Universal-transpiler only works with a small subset of JavaScript. It is able to translate simple mathematical functions and predicates into many languages, but it is not yet able to translate programs like this one. To translate more complicated JavaScript functions into C#, you can use a compiler like Bridge.NET.

jarble avatar Feb 15 '19 20:02 jarble

I ended up using a V8 wrapper to run the js natively, but it's sort of clunky...

beppe9000 avatar Feb 16 '19 11:02 beppe9000