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@373 | 1 | #!/usr/bin/env python |
paul@373 | 2 | |
paul@373 | 3 | l = [1, 2, 3, 4, 5] |
paul@373 | 4 | |
paul@373 | 5 | result1_3 = len(l[2:]) |
paul@373 | 6 | result_2 = len(l[:2]) |
paul@373 | 7 | result2_3 = len(l[1:4]) |
paul@373 | 8 | |
paul@373 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |