slige/slige-run.sh
2025-01-17 11:50:14 +01:00

22 lines
309 B
Bash
Executable File

#!/bin/bash
set -e
echo Text:
if command -v pygmentize 2>&1 >/dev/null
then
pygmentize -l rust -Ostyle="gruvbox-dark",linenos=1 $1
else
cat $1
fi
echo Compiling $1...
deno run --allow-read --allow-write compiler/main.ts $1
echo Running out.slgbc...
./runtime/build/sliger run out.slgbc ${@:2}