2024-12-11 03:11:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-12-11 12:36:19 +01:00
|
|
|
echo Text:
|
2024-12-22 04:23:17 +01:00
|
|
|
|
|
|
|
if command -v pygmentize 2>&1 >/dev/null
|
|
|
|
then
|
|
|
|
pygmentize -l rust -Ostyle="gruvbox-dark",linenos=1 $1
|
|
|
|
else
|
|
|
|
cat $1
|
|
|
|
fi
|
2024-12-11 12:36:19 +01:00
|
|
|
|
2024-12-11 03:11:00 +01:00
|
|
|
echo Compiling $1...
|
|
|
|
|
|
|
|
deno run --allow-read --allow-write compiler/main.ts $1
|
|
|
|
|
2024-12-11 12:36:19 +01:00
|
|
|
echo Running out.slgbc...
|
2024-12-11 03:11:00 +01:00
|
|
|
|
2024-12-13 20:17:22 +01:00
|
|
|
./runtime/build/sliger run out.slgbc ${@:2}
|
2024-12-11 03:11:00 +01:00
|
|
|
|