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.
- Host: GitHub
- URL: https://github.com/Blady-Com/j2ada
- Owner: Blady-Com
- License: other
- Created: 2019-01-19T17:14:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T14:29:52.000Z (about 2 years ago)
- Last Synced: 2024-01-27T09:37:53.229Z (5 months ago)
- Language: Ada
- Size: 59.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Lists
- awesome-ada - j2ada - Translator for a Java valid source code in Ada source code. (Applications / Generators and Translators)
- awesome-ada - j2ada - Translator for a Java valid source code in Ada source code. (Applications / Generators and Translators)
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