RafaelSantosBraz / AS2SCompiler

Implementation of a source-to-source compiler through the principles of a language neutral-based compilation framework.

Home Page:https://rafaelsantosbraz.github.io/AS2SCompiler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Another Source-to-Source Compiler

Implementation of a source-to-source compiler (currently converting Java programs into C programs and vice-versa*) through the principles of a language neutral-based compilation framework.

The compiler is designed to be easily extended, so you can add support to other Imperative (Object-Oriented and Procedural) programming languages by providing Translation Schemes for them.

The complete description of the compiler, its documentation, documentation and usage instructions and examples can be found on the project website.

Download the executable jar here.

Compiling the Compiler

To compile the AS2SCompiler source code, download those awesome open-source projects:

After that, enter the AS2SCompiler directory and execute the following command:

$ mvn clean package

The compiler will be in the target directory.

How to Contribute

Everyone can modify the source code. Follow those steps to do and feel free to submit your improvements:

  • Fork this repository.
  • Change or add code.
  • Create a pull request.

notes

*Disclaimer: It is not possible to translate the entire language so far, only a limited set of aspects are currently covered by AS2SCompiler.

About

Implementation of a source-to-source compiler through the principles of a language neutral-based compilation framework.

https://rafaelsantosbraz.github.io/AS2SCompiler/

License:MIT License


Languages

Language:Java 74.3%Language:ANTLR 24.2%Language:C 1.4%