feat - add HolyC

This commit is contained in:
Jamesbarford 2025-02-05 18:49:32 +00:00
parent 4e361dcf92
commit 02ce97c29f
5 changed files with 36 additions and 0 deletions

15
packages/holyc/0.0.9/build.sh vendored Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
[[ -d "bin" ]] && exit 0
PREFIX=$(realpath $(dirname $0))
curl -L "https://github.com/Jamesbarford/holyc-lang/archive/refs/tags/beta-v0.0.9.zip" -o holyc.zip
unzip ./holyc.zip
cd ./holyc-lang-beta-v0.0.9
mkdir "${PREFIX}"/lib
make \
INSTALL_PREFIX="${PREFIX}"
make install
rm -f ./holyc.zip

7
packages/holyc/0.0.9/compile vendored Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Compile HolyC files
mv $1 $1.HC
filename=$1.HC
shift
hcc $filename

1
packages/holyc/0.0.9/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

9
packages/holyc/0.0.9/metadata.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"language": "HolyC",
"version": "0.0.9",
"aliases": ["holyc", "HolyC", "hcc"],
"limit_overrides": {
"compile_timeout": 15000,
"compile_cpu_time": 15000
}
}

4
packages/holyc/0.0.9/test.HC vendored Normal file
View File

@ -0,0 +1,4 @@
U0 Main()
{
"hello, world!\n";
}