#!/bin/bash # load aliases from bash profile shopt -s expand_aliases source ~/.bash_profile # compile lexer file antlr4 CalculatorLexer.g4 || exit 1 # compile parser file antlr4 -no-listener CalculatorParser.g4 || exit 1 # compile java files /usr/bin/javac *.java echo "All done!"