From fdcbc31ccafaf1447de3cc29e2bba4c32a620081 Mon Sep 17 00:00:00 2001 From: mmichlol Date: Sat, 7 Feb 2026 16:01:02 +0100 Subject: [PATCH] added random int func --- README.md | 29 +++++++++++++++++++++++++++++ push.bat | 17 ++++++++++++----- 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cbf9de4 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# PCC Compiler (My C++ Compiler) + +![Version](https://img.shields.io/badge/version-0.0.6-blue.svg) +![Status](https://img.shields.io/badge/status-BETA-orange.svg) +![Platform](https://img.shields.io/badge/platform-Windows%20x64-lightgrey.svg) + +## Docs +https://nodrop.xyz/docs/docs.html + +**PCC Compiler** is a custom programming language compiler built from scratch in C++. It translates PCC code into x64 Assembly (NASM), which is then linked into a standalone Windows executable. + +## 🚀 Features +- **Custom Syntax**: C-like syntax easy for beginners. +- **Variables**: Support for `int`, `bool` and `string`. +- **include files**: you can include base files from compiler `#include ` or your own files `#include "myfile.pcc"`. +- **KeyBoard and Inputs Support**: now you can control keyboard inputs using `#include `. +- **Control Flow**: `if` statements support. +- **Functions**: Define and call `void` functions. +- **Native Compilation**: Compiles directly to x64 machine code. +- **More Informations**: For more informations check PCC Docs. + +## 🛠️ Usage +1. Download the latest release from the [Releases](../../releases) page. +2. Unzip the archive to C:/PCC/ +3. Run `start.bat` as Administrator. +4. Compile your code: `PCC.exe code.pcc`. + +--- +*Created by Michał Lewandowski* diff --git a/push.bat b/push.bat index 27a3d73..4fd97e3 100644 --- a/push.bat +++ b/push.bat @@ -10,18 +10,25 @@ git add . echo. set /p commit_msg="Enter commit message: " -:: Sprawdzamy czy wpisano wiadomość, jak nie to dajemy domyślną +:: Jeśli użytkownik nic nie wpisze, ustaw domyślną if "%commit_msg%"=="" set commit_msg="Auto update" :: 3. Robimy commit echo. -echo [2/3] Committing with message: "%commit_msg%"... +echo [2/3] Committing... git commit -m "%commit_msg%" -:: 4. Wysyłamy (zakładając, że masz już ustawiony 'origin') +:: 4. Wysyłamy (używamy origin, który już skonfigurowałeś) echo. -echo [3/3] Pushing to repository... -git push -f origin main +echo [3/3] Pushing to Gitea... +git push origin main + +:: Jeśli push się nie uda (np. konflikt), spróbuj wymusić +if %errorlevel% neq 0 ( + echo. + echo [WARNING] Standard push failed. Trying force push... + git push origin main --force +) echo. echo DONE!