2012-05-02 | Paul Boddie | file changeset files shortlog | Changed the visitor dispatch to occur through visit methods on the AST nodes. (This requires a modified version of the compiler package.) Added report output support for yield statements and conditional expressions. |
paul@427 | 1 | #!/usr/bin/env python |
paul@427 | 2 | |
paul@427 | 3 | class C: |
paul@427 | 4 | def __init__(self): |
paul@427 | 5 | self.a = 0 |
paul@427 | 6 | |
paul@427 | 7 | c = C() |
paul@427 | 8 | c.a = 123 |
paul@427 | 9 | result_123 = c.a |
paul@427 | 10 | |
paul@427 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |