m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b32ae73
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+all: bnfc parser interpreter
+ # ghc -dynamic --make Parser/TestSchmim.hs -o Parser/TestSchmim
+
+bnfc:
+ bnfc -haskell -p Parser schmim.bnfc
+
+parser: bnfc
+ happy -gca Parser/ParSchmim.y
+ alex -g Parser/LexSchmim.x
+
+interpreter: parser bnfc
+ ghc -dynamic Schmim.hs -o interpreter
+
+clean:
+ -rm -f Parser/*.log Parser/*.aux Parser/*.hi Parser/*.o Parser/*.dvi *.o *.hi interpreter