-
released this
2026-02-07 20:34:26 +00:00 | 4 commits to main since this release🎮 v0.0.9-beta - Large functions update
This update introduces real-time keyboard interaction capabilities, making PCC suitable for simple game development and interactive CLI tools. It includes a new
Inputlibrary and system-level_getchsupport.🚀 New Features
-
Native String Support:
- Added
stringdata type (e.g.,string s = "Hello";). - Implemented automatic string literal registration in
.datasection. - Updated
print()to support text variables and direct string literals.
- Added
-
Stack-Based Arrays:
- Added declaration syntax
int name[size](allocates memory on stack). - Implemented array write access (
arr[0] = 10orarr[i] = val). - Implemented array read access (
int x = arr[i]). - Support for dynamic indexing using variables.
- Added declaration syntax
-
WinAPI Integration (GUI):
- Added
msgbox(title, content)intrinsic function. - Implemented x64 calling convention (shadow space + registers RCX, RDX, R8, R9) to support Windows
MessageBoxA. - Added linkage to
User32.lib.
- Added
🐛 Bug Fixes & Improvements
- Control Flow: Fixed
whileloop condition parsing. Loops now correctly evaluate expressions (e.g.,while(i - 5)) before jumping, preventing infinite loops or bad jumps. - Parser Refactoring: Completely rewrote
processSourceto handle complex expressions, variable declarations, and array operations in a unified and cleaner way. - CodeGen: Corrected
.datasection generation (fixed label/value order for string literals).
📦 How to use:
- Download the latest release from the Assets section below.
- Unzip the archive to
C:/PCC/. - Run
PCC_Setup.exeas Administrator. - Compile your code from anywhere:
PCC.exe file.pcc
Downloads
-