2007-11-09 | Paul Boddie | file changeset files shortlog | Added a node attribute to Class and Function instances. Ensure that function parameters appear in the locals. Added some code generation support with the micropython.ast and micropython.rsvp modules. |
paul@0 | 1 | #!/usr/bin/env python |
paul@0 | 2 | |
paul@0 | 3 | import micropython |
paul@0 | 4 | import sys |
paul@4 | 5 | |
paul@0 | 6 | i = micropython.Importer(sys.path) |
paul@4 | 7 | if len(sys.argv) < 2: |
paul@4 | 8 | m = i.load("micropython") |
paul@4 | 9 | #m = i.load_from_file("micropython/__init__.py") |
paul@4 | 10 | else: |
paul@4 | 11 | m = i.load_from_file(sys.argv[1]) |
paul@7 | 12 | i.vacuum() |
paul@7 | 13 | ot = i.get_object_table() |
paul@7 | 14 | pt = i.get_parameter_table() |
paul@0 | 15 | |
paul@0 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |