No description
- Python 95.5%
- C++ 4.5%
| .gitea/workflows | ||
| cman | ||
| example | ||
| .gitignore | ||
| out.cpp | ||
| out_legacy.cpp | ||
| pyproject.toml | ||
| readme.md | ||
Pyces
python like syntax for C++
I find myself lost in my code very quickly with C++ as it is pretty hard to read but if you want to program microcontrolers like the arduino uno, you have to use it.
It also just makes you do unnecessary things like semicolons after every line and curly brackets for functions.
It made me realise just how smart the Python syntax is, forcing you to write your code to be tidy.
To combat this, I made Pyces. It allows you to write your C++ code with Python-like syntax and compile it to C++.
Making your code easier to read while still being just as fast as C++ (after compiling to C++).
| C++ | Pyces |
|---|---|
|
|
Install
pip install .
Usage
cman example/hello_world.pycs -o out.cpp
or:
python -m cman example/hello_world.pycs -o out.cpp