Skip to content

Commit dd12766

Browse files
Merge branch 'main' of https://github.com/sussyOS/SusScript
2 parents ac300ca + 0b0df54 commit dd12766

File tree

4 files changed

+72
-7
lines changed

4 files changed

+72
-7
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: susScript build
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python 3.13
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: "3.13"
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install nuitka
30+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
- name: Compile Windows
32+
run: |
33+
chmod +x build.sh
34+
./build.sh W

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
# SusScript
2-
## A Programming language that is sus
3-
![HappyPartyGIF](https://github.com/user-attachments/assets/723c0e77-8085-4f29-b357-9979de7a75d9)
1+
# Sussy Compiler
2+
3+
Sussy is a custom programming language compiler designed to compile the **susScript** language into C++ code. It allows you to write your programs in **susScript** (with a `.sus` file extension) and compile them into executable binaries. The compiler supports function definitions, variable declarations, and print statements, among other features.
4+
5+
## Features
6+
7+
- **susScript language**: Write code using the unique **susScript** syntax.
8+
- **Custom Compiler**: Compile **susScript** code into binary.
9+
- **Library Support**: Include pre-built libraries and custom functions(in progress).
10+
- **Cross-platform**: Works on Windows, macOS, and Linux(not yet).
11+
- **Function Calls**: Call functions in **susScript** code and output results.
12+
- **Custom Errors**: Handle custom exceptions and runtime errors during execution.
13+
14+
## Installation
15+
16+
To use the Sussy Compiler, [click here](https://sussyos.github.io/susScript)

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
mkdir -p dist
4+
osbuild="$1"
5+
clear
6+
7+
if [ "$osbuild" = "W" ]; then
8+
nuitka --mode="onefile" --no-deployment-flag=self-execution --output-dir=dist sussy.py
9+
nuitka --mode="onefile" --output-dir=dist vent.py
10+
cp -f dist/sussy.exe "/mnt/c/Users/George/Documents/sus/bin/sussy.exe"
11+
cp -f dist/vent.exe "/mnt/c/Users/George/Documents/sus/bin/vent.exe"
12+
rm -rf dist
13+
elif [ "$osbuild" = "M" ]; then
14+
exit 0
15+
elif [ "$osbuild" = "L" ]; then
16+
exit 0
17+
else
18+
echo "Invalid OS build option. Please choose W, M, or L."
19+
exit 1
20+
fi
21+
22+
echo "Build complete."

test.sus

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)