build/pymake/mkparse.py
author Marco Bonardo <mbonardo@mozilla.com>
Fri, 08 Jan 2010 13:57:46 +0100
changeset 36951 765335600809c6fe847897351ea6b6cb17c913da
parent 34127 b288c2d37d6bf899ca173dbecf3b27ec34aa6d1c
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 537271 - Add .pyo files to .hgignore, r=ted

#!/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