build/pymake/mkparse.py
author Craig Topper <craig.topper@gmail.com>
Wed, 19 May 2010 22:28:00 -0400
changeset 43120 9a7be1835b530c72a46069a5c3951b80b16804a3
parent 34127 b288c2d37d6bf899ca173dbecf3b27ec34aa6d1c
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 566808 - "DeCOMtaminate nsIStyleRule method signatures" [r=dbaron]

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