2006-10-03 | paulb | file changeset files shortlog | Introduced lots of convenience functions. Changed the simplified nodes to refer to their simplifier at the root level. Tidied up the visual representation of the simplified prettyprinted output. Changed the accesses annotation on StoreAttr to become the writes annotation. Made InvokeFunction and InvokeBlock subclasses of Invoke. Added a viewer module. |
paulb@57 | 1 | #!/usr/bin/env python |
paulb@57 | 2 | |
paulb@57 | 3 | import sys, os |
paulb@57 | 4 | import simplify |
paulb@31 | 5 | import fixnames |
paulb@57 | 6 | import viewer |
paulb@19 | 7 | import annotate |
paulb@19 | 8 | |
paulb@57 | 9 | builtins = simplify.simplify(os.path.join("lib", "builtins.py"), 1) |
paulb@57 | 10 | module = simplify.simplify(sys.argv[1]) |
paulb@57 | 11 | fixnames.fix(builtins) |
paulb@57 | 12 | fixnames.fix(module, builtins) |
paulb@57 | 13 | |
paulb@57 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |