mkparse.py 222 B

12345678910111213
  1. #!/usr/bin/env python
  2. import sys
  3. import pymake.parser
  4. for f in sys.argv[1:]:
  5. print "Parsing %s" % f
  6. fd = open(f, 'rU')
  7. s = fd.read()
  8. fd.close()
  9. stmts = pymake.parser.parsestring(s, f)
  10. print stmts