Search code examples
javascriptdartcode-translation

Is there a converter of Javascript to Dart?


Is there an automatic converter of javascript code to Dart? Or is it too soon?


Solution

  • There's a recent tool called JSParser and does all its magic using Dart itself, that is the parser is written in Dart.

    On a related noted there is Frog (and it comes with the standard SDK) which converts Dart to Javascript, it's also written in Dart making it a good showcase for the language.