Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Blady-Com/j2ada

J2Ada translates a Java valid source code in Ada source code.
https://github.com/Blady-Com/j2ada

Last synced: 2 months ago
JSON representation

J2Ada translates a Java valid source code in Ada source code.

Lists

README

        

# J2Ada

[![Alire](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/j2ada.json)](https://alire.ada.dev/crates/j2ada.html)

## Introduction
J2Ada translates a Java valid source code in Ada source code.
In this first version, a large part of Java syntax is translated.
But, up to now, both specification and body parts of the generated Ada code
become valid with few manual modifcations.

## Creation of translation program
### Source codes of J2Ada program
- arbmgr.adb
- arbmgr.ads
- basicdef.adb
- basicdef.ads
- fichsrc.adb
- fichsrc.ads
- importmgr.adb
- importmgr.ads
- insrc.adb
- insrc.ads
- j2ada.adb
- javaseq.adb
- javaseq.ads
- javaseq.auto
- javaseq.in
- objpar.ads
- objsrc.adb
- objsrc.ads
- outsrc.adb
- outsrc.ads

(From [J2Ada on GitHub](https://github.com/Blady-Com/j2ada)).

### Creation of the sequencer of Java interpretation
The sequencer unit in Ada is already created: javaseq.adb and javaseq.ads.
If necessary the sequencer may be modified in the file javaseq.auto
containing Java syntax and regenerated with the Automate sequencer compiler.

Download the sequencer compiler from [Automate on GiHub](https://github.com/Blady-Com/Automate).

Compile the program genauto then use it to generate the Ada units:

```
$ gnatmake genauto
$ ./genauto