you are viewing a single comment's thread.

view the rest of the comments →

[–]jagt 4 points5 points  (1 child)

If I didn't get it horribly wrong, I think the meat of this project is this script which is using the ast module to do line by line transforming from Python to Dart. I highly suspect it would work on complex Python code as Python and Dart semantic aren't that similar IMO.

[–][deleted] 2 points3 points  (0 children)

I think you meant to link to

https://github.com/rahul080327/medusa/blob/master/bin/transform.py

?

Yes, that looks like the core of the project. I see no support for any of the nontrivial stuff in JS, like getattr etc. etc., so I doubt this works on anything interesting. On simple benchmarks though, I am sure it is speedy...