mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-04 17:46:26 +02:00
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 <slendi@socopon.com>
This commit is contained in:
parent
919076e209
commit
99b03e20d0
5 changed files with 32 additions and 0 deletions
22
packages/holyc/1.0.0/build.sh
vendored
Executable file
22
packages/holyc/1.0.0/build.sh
vendored
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
curl https://git.xslendi.xyz/slendi/3Days/archive/main.tar.gz -o 3days.tar.gz
|
||||||
|
|
||||||
|
tar xzf 3days.tar.gz --strip-components=1
|
||||||
|
rm 3days.tar.gz
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
cp -v 3d_loader $PREFIX/.
|
||||||
|
cp -rv T $PREFIX/.
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
rm -rf build
|
||||||
|
|
1
packages/holyc/1.0.0/environment
vendored
Normal file
1
packages/holyc/1.0.0/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
5
packages/holyc/1.0.0/metadata.json
vendored
Normal file
5
packages/holyc/1.0.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "holyc",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"aliases": ["hc"]
|
||||||
|
}
|
3
packages/holyc/1.0.0/run
vendored
Normal file
3
packages/holyc/1.0.0/run
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
3d_loader -T $PWD/bin/ -c "$@"
|
1
packages/holyc/1.0.0/test.HC
vendored
Normal file
1
packages/holyc/1.0.0/test.HC
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"OK";
|
Loading…
Add table
Add a link
Reference in a new issue