PACKAGE = Arit
MAINFILE = arit

ifndef ANTLR4
$(error variable ANTLR4 is not set)
endif

all: $(PACKAGE).g4
	$(ANTLR4) $^ -Dlanguage=Python3 -visitor

run: $(MAINFILE).py
	python3 $^

clean:
	rm -rf *~ $(PACKAGE)*.py *.pyc *.tokens  __pycache* *.interp
