feat - add HolyC
This commit is contained in:
parent
4e361dcf92
commit
02ce97c29f
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile HolyC files
|
||||
mv $1 $1.HC
|
||||
filename=$1.HC
|
||||
shift
|
||||
hcc $filename
|
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"language": "HolyC",
|
||||
"version": "0.0.9",
|
||||
"aliases": ["holyc", "HolyC", "hcc"],
|
||||
"limit_overrides": {
|
||||
"compile_timeout": 15000,
|
||||
"compile_cpu_time": 15000
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
U0 Main()
|
||||
{
|
||||
"hello, world!\n";
|
||||
}
|
Loading…
Reference in New Issue