Skip to content

TerminalCalamitas/Codle-Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codle Translate

A lightweight desktop app for translating code between programming languages.

Codle Translate GUI


Supported Code

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

Installation Guide

IMPORTANT Python 3.13.x is required for this project.

Install Poetry if not installed already:

pip install poetry
# or
pipx install poetry

Then install dependencies and launch the GUI:

poetry  install
poetry run gui

Python to C translation

Testing

Run all tests with verbose output:

poetry run test

Run a specific test class:

poetry run pytest tests/test.py::ClassName -v

Run a specific test:

pytest tests/test.py::ClassName::test_method -v

Dependencies

Package Purpose
PySide6 Desktop GUI framework (Qt6)
tree-sitter-language-pack Multi-language parsing
pytest Unit Testing

Limitations

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.


License

MIT

About

A langage to language transpiler for simple code snippets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages