actually commit TP2

This commit is contained in:
Rémi Di Guardia
2022-09-19 11:57:16 +02:00
parent 7f66aeacb8
commit 4a02f248df
23 changed files with 548 additions and 0 deletions
+17
View File
@@ -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*