]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - parser/Makefile
Use grako instead of PLY to compile EBNF to Python
[phdru.name/cgi-bin/blog-ru/search-tags.git] / parser / Makefile
diff --git a/parser/Makefile b/parser/Makefile
new file mode 100644 (file)
index 0000000..a811f0c
--- /dev/null
@@ -0,0 +1,13 @@
+# Makefile.
+#
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2016 PhiloSoft Design"
+
+parser.py: grammar.ebnf
+       grako -o $@ $<
+       chmod +x $@
+
+
+.PHONY: test
+test: parser.py
+       ./test_parser.py