A powerful tool that automatically converts C/C++ code to Java, featuring a modern GUI interface and intelligent code transformation.
-
- Project Overview
- Features
- Screenshots
- Requirements
-
- Installation
- Quick Start
- GUI Interface
- Common Operations
-
- ANTLR4 Grammar
- Conversion Process
- Code Analysis
- AST Transformation
-
- Project Structure
- Component Design
- Class Diagrams
- Data Flow
-
- Core Components
- Key Classes
- Important Functions
- Extension Points
-
- Sample Conversions
- Supported Features
- Known Limitations
- Troubleshooting
-
Prerequisites
# Install Python 3.8+ python --version # Install Java (for ANTLR) java -version
-
Installation
# Clone repository git clone https://github.com/NgMinPhuc/Convert-Project.git cd Convert-Project # Create virtual environment python -m venv venv source venv/bin/activate # or .\venv\Scripts\activate on Windows # Install dependencies pip install -r requirements.txt # Generate parser python generate_parser.py
-
Run Application
python main.py
- Modern GUI with real-time preview
- Intelligent code analysis and conversion
- Automatic type conversion
- Standard library mapping
- Detailed conversion reports
- Support for complex C constructs
Convert-Project/
├── docs/ # Detailed documentation
├── grammar/ # ANTLR grammar files
├── translator/ # Core translation logic
│ ├── converter.py # Main converter
│ └── c_listener.py # ANTLR listener
├── utils/ # Utility functions
├── C.g4 # C grammar definition
├── main.py # GUI application
└── requirements.txt # Python dependencies
- Nguyen Minh Phuc - ITCSIU22225
- ANTLR4 for grammar parsing
- PyQt6 for GUI framework
- Open source community for inspiration and support