Add COBOL-to-Java Visualization Tool #3
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a Flask-based web application that visualizes the mapping between COBOL legacy code and modern Java implementations. The tool helps developers understand the conversion process by displaying side-by-side comparisons of COBOL and Java code with syntax highlighting.
Features
How It Works
The tool scans Java files for COBOL reference comments (e.g.,
// COBOL equivalent: CREACC.cbl 287-307) and:Technical Stack
Usage
cd cobol-java-viewer pip install -r requirements.txt python app.pyThen navigate to
http://localhost:12000to view the visualization.Screenshots
The application currently supports 42 Java files with COBOL mappings, providing a comprehensive view of the conversion process.
Files Added
cobol-java-viewer/app.py- Main Flask applicationcobol-java-viewer/requirements.txt- Python dependenciescobol-java-viewer/README.md- Documentation and setup instructionscobol-java-viewer/templates/- HTML templates for the web UIcobol-java-viewer/.gitignore- Python-specific ignore patternsTesting
The application has been tested with all Java files in the repository that contain COBOL reference comments. It successfully:
@neubig can click here to continue refining the PR