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

23 lines
689 B
Bash
Raw Normal View History

2022-01-27 17:43:32 -06:00
in=$1 # Get first's file name
noext=${in%.*} # Remove extension
name=${noext##*/} # Remove path
2022-01-27 17:39:57 -06:00
2022-01-27 18:33:58 -06:00
echo $2
# if $2 equal to "noecho"
if [ $2 = "noecho" ];
then
2022-02-08 10:04:47 -06:00
make debug; echo ""; vyc compile $noext.vy; echo ""
cat $noext.vy; echo -e "\n"; cat $name.vyir; echo ""
vyc run $name.vyir
2022-01-27 18:33:58 -06:00
else
make debug
2022-02-08 10:04:47 -06:00
vyc compile $noext.vy
2022-01-27 18:33:58 -06:00
echo -e "------------------------------------------- SOURCE"
2022-02-08 10:04:47 -06:00
cat $noext.vy
2022-01-27 18:33:58 -06:00
echo -e "\n----------------------------------------- COMPILED"
2022-02-08 10:04:47 -06:00
cat $name.vyir
2022-01-27 18:33:58 -06:00
echo -e "------------------------------------------- OUTPUT"
2022-02-08 10:04:47 -06:00
blspc run $name.vyir
2022-01-27 18:33:58 -06:00
echo -e "--------------------------------------------------"
fi