slige/slige-run.sh

22 lines
317 B
Bash
Raw Permalink Normal View History

2024-12-11 02:11:00 +00:00
#!/bin/bash
set -e
2024-12-11 11:36:19 +00:00
echo Text:
2024-12-22 03:23:17 +00: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 11:36:19 +00:00
2024-12-11 02:11:00 +00:00
echo Compiling $1...
2024-12-26 02:56:59 +00:00
deno run --allow-read --allow-write --check compiler/main.ts $1
2024-12-11 02:11:00 +00:00
2024-12-11 11:36:19 +00:00
echo Running out.slgbc...
2024-12-11 02:11:00 +00:00
2024-12-13 19:17:22 +00:00
./runtime/build/sliger run out.slgbc ${@:2}
2024-12-11 02:11:00 +00:00