#!/usr/bin/env zsh
# Run commonly-used SubX programs using the SubX VM.
if [ $# -eq 0 ]
then
echo "run <binary> <args>"
exit 1
fi
if [[ $1 == 'ex'* ]]
CFLAGS=-g subx run examples/$*
exit $?
CFLAGS=-g subx run apps/$*