Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.5 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.5 KB

🐲 java2cpp

FLEX & BISON Java to C++ translator.

⚠️ Warning: java2cpp is still under development and constant changes.

👀 Full 50+ pages documentation available in 🇪🇸Spanish🇲🇽 here.

Documentation

Quick Start

Simply pipe your input file into the translator executable a.out :

./a.out < YOUR_PATH_TO_FILE/FILE.java

Compiling Lex And Yacc

Make sure you've installed flex and bison on your system.

If you choose to modify the lex java2cpp.l or yacc java2cpp.y files, you would need to step through the following commands in the terminal to update your file changes.

First you should run:

lex java2cpp.l

Second:

yacc java2cpp.y

Third and last:

cc y.tab.c -ly -ll

Then you can run java2cpp as stated on the quick start section.

Contributing

You are more than welcome to help java2cpp become more robust by adding new features, fixing bugs, improving the documentations, and a lot more.

All you need to do is fork this repo and begin coding! 🎉

Please read the contributing guide to learn about our contributing rules and standards.