Java to Dart or C# to Dart code converter

2,161 views
Skip to first unread message

Andrew Skalkin

unread,
Dec 5, 2013, 4:18:03 PM12/5/13
to mi...@dartlang.org
I'm thinking of porting some Java and C# code to Dart and looking for tools that would help me automate this task. Even basic things like converting "private" to "_" for class members would help, but ideally I'm looking for a more sophisticated tool. I'm sure I'm not the first one who had this idea, so I'm hoping that someone has done it already, otherwise I might take a stab at it.

John Messerly

unread,
Dec 5, 2013, 4:24:52 PM12/5/13
to General Dart Discussion
Java2Dart:
https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java

it's used to produce "package:analyzer" so we are relying on it.

Looks like it's written in Java. I wonder if anyone's tried running java2dart on itself? ;-)



On Thu, Dec 5, 2013 at 1:18 PM, Andrew Skalkin <ska...@gmail.com> wrote:
I'm thinking of porting some Java and C# code to Dart and looking for tools that would help me automate this task. Even basic things like converting "private" to "_" for class members would help, but ideally I'm looking for a more sophisticated tool. I'm sure I'm not the first one who had this idea, so I'm hoping that someone has done it already, otherwise I might take a stab at it.

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Alex Tatumizer

unread,
Dec 5, 2013, 4:49:27 PM12/5/13
to mi...@dartlang.org
> I wonder if anyone's tried running java2dart on itself?
You will get Mozart Symphony #40
LOL
There's an old anecdote: student composer, unable to come up with any good idea, just takes a composition by his teacher, and records all notes backwards.
When he plays it to the teacher, the old man exclaims: but this is Mozart Symphony #40!

Günter Zöchbauer

unread,
Dec 5, 2013, 5:02:33 PM12/5/13
to mi...@dartlang.org
Good ideas never die. LOL


Reply all
Reply to author
Forward
0 new messages