2006-12-06 | paulb | file changeset files shortlog | Moved system count testing back to before namespace construction in the invocation and annotation of subprograms (reverting changes in changeset #146); this may have been changed earlier because default value types were not being remembered. Fixed constant storage by differentiating between values more thoroughly. Fixed/improved keyword argument handling, removing the Keyword node from the annotation phase. Changed the CSS class for keyword arguments. |
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@67 | 7 | from annotate import AnnotationError, annotate_all as aa |
paulb@19 | 8 | |
paulb@138 | 9 | if __name__ == "__main__": |
paulb@138 | 10 | |
paulb@138 | 11 | builtins = simplify.simplify(os.path.join("lib", "builtins.py"), 1) |
paulb@138 | 12 | module = simplify.simplify(sys.argv[1]) |
paulb@138 | 13 | fixnames.fix(builtins) |
paulb@138 | 14 | fixnames.fix(module, builtins) |
paulb@138 | 15 | |
paulb@138 | 16 | if "-a" in sys.argv: |
paulb@148 | 17 | aa([module], builtins) |
paulb@138 | 18 | |
paulb@138 | 19 | if "-d" in sys.argv: |
paulb@143 | 20 | viewer.makedocs(module, builtins) |
paulb@138 | 21 | |
paulb@57 | 22 | # vim: tabstop=4 expandtab shiftwidth=4 |