summaryrefslogtreecommitdiff
path: root/python/pymake/mkparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pymake/mkparse.py')
-rw-r--r--python/pymake/mkparse.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/pymake/mkparse.py b/python/pymake/mkparse.py
new file mode 100644
index 000000000..253683948
--- /dev/null
+++ b/python/pymake/mkparse.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+
+import sys
+import pymake.parser
+
+for f in sys.argv[1:]:
+ print "Parsing %s" % f
+ fd = open(f, 'rU')
+ s = fd.read()
+ fd.close()
+ stmts = pymake.parser.parsestring(s, f)
+ print stmts