#!/bin/bash

set -e

echo Text:
cat $1

echo Compiling $1...

deno run --allow-read --allow-write compiler/main.ts $1

echo Running out.slgbc...

./runtime/build/sliger run out.slgbc ${@:2}