No description
  • Python 95.5%
  • C++ 4.5%
Find a file
2026-02-23 12:09:10 -05:00
.gitea/workflows add thins 2026-02-23 12:03:36 -05:00
cman fixed error 2026-02-23 12:09:07 -05:00
example added autobuild 2026-02-23 12:01:20 -05:00
.gitignore added pycache to gitignore 2026-02-23 12:09:10 -05:00
out.cpp added autobuild 2026-02-23 12:01:20 -05:00
out_legacy.cpp fixed error 2026-02-23 12:09:07 -05:00
pyproject.toml added autobuild 2026-02-23 12:01:20 -05:00
readme.md added autobuild 2026-02-23 12:01:20 -05:00

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

void setup(){
    Serial.begin(9600);
    Serial.println("start");
    int test = 5;
}
void loop(){
    delay(500);
    Serial.println("Test");
}

void setup()
    loging(9600)
    print("start")
    int test = 5

void loop() time.sleep(500) print("Test")

Install

pip install .

Usage

cman example/hello_world.pycs -o out.cpp

or:

python -m cman example/hello_world.pycs -o out.cpp