mozilla-history/build/pymake/mkparse.py

12 строки
199 B
Python
Executable File

#!/usr/bin/env python
import sys
import pymake.parser
for f in sys.argv[1:]:
print "Parsing %s" % f
fd = open(f)
stmts = pymake.parser.parsestream(fd, f)
fd.close()
print stmts