2007-02-14 | paulb | file changeset files shortlog | Changed comparison operations to use the same infrastructure as normal binary operations, modifying that infrastructure slightly. Introduced a special AST-style node for improved viewer referencing of the operations. |
paulb@29 | 1 | a = 1 |
paulb@29 | 2 | b = 2 |
paul@0 | 3 | if a: |
paul@0 | 4 | x = 1 |
paul@0 | 5 | elif b: |
paul@0 | 6 | x = 2 |
paul@0 | 7 | else: |
paul@0 | 8 | x = 3 |