-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
5 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export PATH=$PWD/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"language": "holyc", | ||
"version": "1.0.0", | ||
"aliases": ["hc"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
echo "#include \"$1\"" > run.HC | ||
|
||
3d_loader -T $PWD/bin/ -c run.HC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"OK"; |