1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/test.sh
2022-02-11 18:07:32 +07:00

23 lines
689 B
Bash
Executable file

in=$1 # Get first's file name
noext=${in%.*} # Remove extension
name=${noext##*/} # Remove path
echo $2
# if $2 equal to "noecho"
if [ $2 = "noecho" ];
then
make debug; echo ""; vyc compile $noext.vy; echo ""
cat $noext.vy; echo -e "\n"; cat $name.vyir; echo ""
vyc run $name.vyir
else
make debug
vyc compile $noext.vy
echo -e "------------------------------------------- SOURCE"
cat $noext.vy
echo -e "\n----------------------------------------- COMPILED"
cat $name.vyir
echo -e "------------------------------------------- OUTPUT"
blspc run $name.vyir
echo -e "--------------------------------------------------"
fi