Skip to content

0.3.5

Choose a tag to compare

@franknoh franknoh released this 16 Sep 07:00
· 358 commits to main since this release
05237c1

Changes

  • Add --int-width 32 for unsafe standalone C/C++ output, using real 32-bit arithmetic, plain int, and %d input/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.cpp

Install or upgrade with pip install --upgrade ppy-lang==0.3.5.