Skip to content

Commit 81fde08

Browse files
committed
pkg(holyc-1.0.0): Added holyc 1.0.0
This patch adds support for the HolyC programming language by Terry A. Davis. The compiler used is based on a modified version of the 3Days compiler. Both 3Days and the fork used here do not have a specific version so 1.0.0 has been used and will be used forwards in future commits unless 3Days gets versioning (which it wont since development stopped). Signed-off-by: Slendi <[email protected]>
1 parent 919076e commit 81fde08

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

Diff for: packages/holyc/1.0.0/build.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
PREFIX=$(realpath $(dirname $0))
4+
5+
mkdir -p build
6+
7+
cd build
8+
9+
curl https://git.xslendi.xyz/slendi/3Days/archive/main.tar.gz -o 3days.tar.gz
10+
11+
tar xzf 3days.tar.gz --strip-components=1
12+
rm 3days.tar.gz
13+
14+
make
15+
16+
cp -v 3d_loader $PREFIX/.
17+
cp -rv T $PREFIX/.
18+
19+
cd ..
20+
21+
rm -rf build
22+

Diff for: packages/holyc/1.0.0/environment

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export PATH=$PWD/bin:$PATH

Diff for: packages/holyc/1.0.0/metadata.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"language": "holyc",
3+
"version": "1.0.0",
4+
"aliases": ["hc"]
5+
}

Diff for: packages/holyc/1.0.0/run

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
echo "#include \"$1\"" > run.HC
4+
5+
3d_loader -T $PWD/bin/ -c run.HC

Diff for: packages/holyc/1.0.0/test.HC

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"OK";

0 commit comments

Comments
 (0)