A lightweight desktop app for translating code between programming languages.
Supported Languages:
- JavaScript
- Python
- Java
- C
Supported constructs:
- Variable declarations (int, float, string, bool)
- for loops (range() and C-style)
- while loops
- if statements
- Output statements
- Single-line comments
IMPORTANT Python 3.13.x is required for this project.
Install Poetry if not installed already:
pip install poetry
# or
pipx install poetryThen install dependencies and launch the GUI:
poetry install
poetry run guiRun all tests with verbose output:
poetry run testRun a specific test class:
poetry run pytest tests/test.py::ClassName -vRun a specific test:
pytest tests/test.py::ClassName::test_method -v| Package | Purpose |
|---|---|
| PySide6 | Desktop GUI framework (Qt6) |
| tree-sitter-language-pack | Multi-language parsing |
| pytest | Unit Testing |
The translator handles common patterns but is not a full compiler and as such complex constructs like functions, classes, imports, and multi-line expressions are not currently supported.
MIT

