Changes between Version 2 and Version 3 of j2p


Ignore:
Timestamp:
11/01/22 15:01:17 (2 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v2 v3  
    1212||jackson-t||library with translators for jackson->pyson translation||quite complete||
    1313||tudutils-t||library with translators for tudelft utilities package.||very partial ||
     14
     15These modules offer translation support for external java libraries. For instance jackson is an external library to translate json to java; the jackson-t library translates jackson-based code and annotations into pyson-based python code.
     16
     17You can easily extend the standard core translator with these plugin translators by just importing these plugins in your java project. Just make sure that they are all based on the same core version.
     18
     19
     20== Internal mechanism
     21There are two main components in the core:
     221. The translator that parses java code and creates equivalent python code
     232. per-java-class translators that know how to translate a specific call to a java class function or field into equivalent python code.
     24
     25The first is generic and used for all java programs. It is currently pretty complete but details will be filled in over time as the need arises to support more java syntax.
     26
     27The second is currently very partial. The reason is that there are a huge number of java classes, and every field and function in it will need a specialized translator. This will grow slowly over time as needed.