build/pymake/mkparse.py
author Michael Wu <mwu@mozilla.com>
Thu, 03 Jun 2010 13:56:36 -0700
changeset 43066 1c416ab33c8e6cebc2c74d0f36cf76b5a0a6b2dd
parent 34127 b288c2d37d6bf899ca173dbecf3b27ec34aa6d1c
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 564327 - Add Android widgets backend [2/2], patch by vlad, alexp, blassey, and me. r=dougt, sr=roc

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