build/pymake/mkparse.py
author Aki Sasaki <asasaki@mozilla.com>
Wed, 29 Sep 2010 11:04:07 -0700
branchGECKO20b7pre_20100929_RELBRANCH
changeset 54773 793167afe8b48ca926a1038e7f3dceacaa505e4a
parent 34127 b288c2d37d6bf899ca173dbecf3b27ec34aa6d1c
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Branching for Fennec 4.0a1. (backing out previous whitespace change). a=release/npotb

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