-
released this
2026-02-07 17:43:54 +00:00 | 6 commits to main since this releaseThis massive update turns PCC into a Turing-complete language capable of running complex algorithms and games. It introduces loops (
while), advanced boolean logic (&&,||), and a random number generator.✨ New Features
- Control Flow:
- While Loops: Added
while (condition) { ... }support. - Advanced IFs: Support for complex conditions like
if (a == 1 && b == 2). - Boolean Logic: Added
&&(AND) and||(OR) operators.
- While Loops: Added
- Randomness:
randint(min, max): New function instd/Random.pccto generate random numbers.- System Calls: Added backend support for
rand,srand, andtimefrom C runtime.
- Math:
- Division & Modulo: Added support for
/and%operators.
- Division & Modulo: Added support for
📚 Standard Library Updates
std/Random.pcc: Includesrandomize()(seed generator) andrandint().std/Input.pcc: Now fully stable with improved key handling.
🛠 Technical Improvements
- Parser Upgrade: The parser now recursively analyzes conditions inside
ifstatements, allowing for temporary variable generation and multi-step logic evaluation. - CodeGen Optimization: Improved
JMPhandling for loops and logical short-circuits.
📦 How to use:
- Download the latest release from the Assets section below.
- Unzip the archive to
C:/PCC/. - Run
setup.batas Administrator. - Compile your code from anywhere:
PCC.exe file.pcc
Downloads
- Control Flow: