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@236 | 1 | #!/usr/bin/env python |
paul@236 | 2 | |
paul@236 | 3 | def f(x): |
paul@236 | 4 | return g(x) |
paul@236 | 5 | |
paul@236 | 6 | def g(x): |
paul@236 | 7 | return x |
paul@236 | 8 | |
paul@236 | 9 | result_13579 = f(13579) |
paul@236 | 10 | |
paul@236 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |