actually commit TP2
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
MAINFILE = main
|
||||
PACKAGE = Example1
|
||||
|
||||
ifndef ANTLR4
|
||||
$(error variable ANTLR4 is not set)
|
||||
endif
|
||||
|
||||
default: $(PACKAGE).py
|
||||
|
||||
$(PACKAGE).py: $(PACKAGE).g4
|
||||
$(ANTLR4) $^ -Dlanguage=Python3
|
||||
|
||||
run: $(MAINFILE).py $(PACKAGE)*.py
|
||||
python3 $<
|
||||
|
||||
clean:
|
||||
rm -rf *~ $(PACKAGE)*.py $(PACKAGE)*.pyc *.interp *.tokens __pycache*
|
||||
Reference in New Issue
Block a user