2010-08-07 | Paul Boddie | file changeset files shortlog | Added some support for HTML reports of program modules, separating the program finalisation out into a separate method of the Program class, in order to avoid obtaining an actual program image, yet removing unneeded parts of a program. Moved code to test for the usage of program sections into the common module, since this is also useful when generating reports. Added AST node annotation documentation. |
paul@151 | 1 | #!/usr/bin/env python |
paul@151 | 2 | |
paul@151 | 3 | def f(a, b): |
paul@151 | 4 | a += b |
paul@151 | 5 | |
paul@151 | 6 | a = 1 |
paul@151 | 7 | b = 2 |
paul@151 | 8 | a += b |
paul@151 | 9 | |
paul@151 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |