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@331 | 1 | #!/usr/bin/env python |
paul@331 | 2 | |
paul@331 | 3 | d = 4 |
paul@331 | 4 | |
paul@331 | 5 | def f(a, b, c=d): |
paul@331 | 6 | return c |
paul@331 | 7 | |
paul@331 | 8 | result_3 = f(1, 2, 3) |
paul@331 | 9 | result_4 = f(1, 2) |
paul@331 | 10 | |
paul@331 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |