build/pymake/mkparse.py
author Benjamin Smedberg <benjamin@smedbergs.us>
Wed, 18 May 2011 09:05:24 -0400
changeset 69670 f5ac9367f1e15ca931afebc8b986e32ad11fc21d
parent 34127 b288c2d37d6bf899ca173dbecf3b27ec34aa6d1c
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 644626 - Move plugin tests from modules/plugin/test to dom/plugin/test, 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