2007-04-06 | paulb | file changeset files shortlog | Introduced sets throughout the code. Created a simplified package containing essential classes. Changed the annotation visitor so that nodes are not returned from each visitor method. Added a check on the context when invoking subprograms so that the extra Self node is not inserted into the arguments for non-instance methods or functions. |
paulb@210 | 1 | def f(x): |
paulb@210 | 2 | while x: |
paulb@210 | 3 | y = 3 |
paulb@210 | 4 | x -= 1 |
paulb@210 | 5 | return y |
paulb@210 | 6 | |
paulb@210 | 7 | f(1) |