Other target language

39 views
Skip to first unread message

danie...@gmail.com

unread,
Oct 1, 2014, 2:13:16 PM10/1/14
to shar...@googlegroups.com
Hi there. 

I am currently investigating SharpKit for using it in my (several year old) project where I've been using Haxe before. Since C# is my favourite language and the IDE support is simply awesome I was looking for other solutions. Lately I was investigating the Saltarelle Compiler and it works nicely. But in my project I also want to support multiple platforms: Desktop using C#, Web using JavaScript and Android using Java. Sadly there are no good C# to Java compilers. But if it's possible to compile C# to JavaScript it should be possible to compile C# to Java too (if you aren't using too features like the dynamic). 

I was reading a bit in your code and it seems you have quite a tight coupling of your middleend and backend in your compiler. I was wondering if your compiler architecture will allow an extension where C# gets compiler to Java. Simply said there is a need for a Java AST like the JavaScript AST (JsNode) and a MemberConverter which does the conversion. 

Looking forward to your response. 

Greetings
Daniel

Dan-el Khen

unread,
Oct 3, 2014, 10:37:02 AM10/3/14
to shar...@googlegroups.com
Hi Daniel,

Actually, I have personally created a C# to Java compiler, using SharpKit source code as basis. Let me locate it, and upload it to github and we can take it from there. In any case, SharpKit compiler has a plug-in model that allows you to add more features, or even new target languages to it. Feel free to contact me directly (or via sharpkit support email) regarding this matter.

Cheers
Dan-el
SharpKit

--
You received this message because you are subscribed to the Google Groups "SharpKit Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharpkit+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan-el Khen

unread,
Oct 3, 2014, 11:03:55 AM10/3/14
to shar...@googlegroups.com
I have pushed the code into github:

If you'd like to be added to the project just let me know.

Cheers
D.

danie...@gmail.com

unread,
Oct 3, 2014, 12:51:23 PM10/3/14
to shar...@googlegroups.com
Wow, you are my hero. I will start investigating the compiler this weekend. 

Cheers.
Reply all
Reply to author
Forward
0 new messages