added random int func
This commit is contained in:
29
README.md
Normal file
29
README.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# PCC Compiler (My C++ Compiler)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 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 <main.pcc>` or your own files `#include "myfile.pcc"`.
|
||||||
|
- **KeyBoard and Inputs Support**: now you can control keyboard inputs using `#include <Input.pcc>`.
|
||||||
|
- **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*
|
||||||
17
push.bat
17
push.bat
@@ -10,18 +10,25 @@ git add .
|
|||||||
echo.
|
echo.
|
||||||
set /p commit_msg="Enter commit message: "
|
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"
|
if "%commit_msg%"=="" set commit_msg="Auto update"
|
||||||
|
|
||||||
:: 3. Robimy commit
|
:: 3. Robimy commit
|
||||||
echo.
|
echo.
|
||||||
echo [2/3] Committing with message: "%commit_msg%"...
|
echo [2/3] Committing...
|
||||||
git commit -m "%commit_msg%"
|
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.
|
||||||
echo [3/3] Pushing to repository...
|
echo [3/3] Pushing to Gitea...
|
||||||
git push -f origin main
|
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.
|
||||||
echo DONE!
|
echo DONE!
|
||||||
|
|||||||
Reference in New Issue
Block a user