Code Monkey home page Code Monkey logo

java2haxe's Introduction

About

This program converts Java source to Haxe source using a modified version of Sharpen, a Java to C# converter.

Contents

sharpen.core

This eclipse project contains a modified version of Sharpen.

sharpen.jgit

This directory contains an example usage of Sharpen to convert Java to Haxe source. As an example it converts the JGit source to Haxe. The build file is based on the make file of NGit.

Usage

  1. Import the Eclipse projects to your workspace
  2. Export the sharpen.core project (Deployable plug-ins and fragments) to your Eclipse home directory
  3. Adjust the paths in the sharpen.jgit/build.xml to match your system.
  4. Run the build.xml using ant (pull target)
  5. The Haxe source can be found in the generated directory.

or

  1. Copy the dist/sharpen.core.jar to your Eclipse\Plugins directory
  2. Adjust the paths in the sharpen.jgit/build.xml to match your system.
  3. Run the build.xml using ant (pull target)
  4. The Haxe source can be found in the generated directory.

Links

java2haxe's People

Contributors

danielku15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

java2haxe's Issues

constructor overloads

The same problems like with methods. Probably we should only generate default constructors + factory methods.

default constructor generation

If you don't have any constructors in Java, there is always the default constructor. But no constructor in Haxe means the class has none.

moving of nested types

Nested types are not supported by Haxe. They should get moved out of the type and placed below the type in the same compilation unit.

Haxe 3 Syntax Support

Hi, I want to convert an existing Java source to Haxe. But this repository seem to be 4 years old and I need it to transform the source to a Haxe 3 source.

finally block.

Haxe doesn't support finally blocks. Maybe we can generate some workaround. (an some inline functions could do the job. Ideas are welcome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.