Repository navigation
0.3.5
Changes
- Add
--int-width 32for unsafe standalone C/C++ output, using real 32-bit arithmetic, plainint, and%dinput/output. The default remains 64-bit. - Reject constants outside the selected range and fixed runtime ABIs that cannot be narrowed safely.
- Place callees before callers and local declarations near their first write; combine adjacent C++ namespaces.
- Remove redundant casts and unnecessary floor-division corrections using type and branch bounds, while retaining negative division semantics.
- Avoid intermediate overflow when correcting a remainder with a large positive divisor.
- Document the integer model, usage, and limitations.
ppy emit c --standalone --unsafe --int-width 32 --format app.ppy -o app.c
ppy emit cpp --standalone --unsafe --int-width 32 --format app.ppy -o app.cppInstall or upgrade with pip install --upgrade ppy-lang==0.3.5.