Commit Graph

13 Commits

Author SHA1 Message Date
Mark Dickinson 2037913507 Update Demo/parser directory; backport unparse fixes from py3k. 2010-06-30 14:19:56 +00:00
Mark Dickinson 0187be0825 unparse.py: fix mispaced parentheses in chained comparisons 2010-06-28 19:54:19 +00:00
Mark Dickinson 623b979553 Fix some shallow bugs in Demo/parser/unparse.py, and add tests:
- insert commas between entries in del statement
  - left and right shifts were represented as >> and << (respectively); reverse
  - unindent properly after for: else:  or while: else:
  - add parens around the result of an unary operation
  - add parens around negative numbers, to avoid turning (-1)**2 into -1**2.
2010-06-28 19:31:41 +00:00
Benjamin Peterson 7c972f971c get unparse to at least unparse its self 2008-08-19 17:59:23 +00:00
Tim Peters 35c7bb202f Whitespace normalization. 2007-04-25 18:47:18 +00:00
Georg Brandl 124df8398d Patch #1683328: fixes and enhancements for "unparse" demo. 2007-03-19 19:02:48 +00:00
Georg Brandl 2756278304 Patch #1552024: add decorator support to unparse.py demo script. 2006-10-27 20:39:43 +00:00
Tim Peters 3daf304f3b Whitespace normalization. 2006-04-10 20:28:40 +00:00
Martin v. Löwis 3fa6c090d8 Patch #1441452: Add more AST nodes. 2006-04-10 12:43:55 +00:00
Martin v. Löwis 87a8b4fee5 unparse.py can now unparse itself. 2006-02-28 21:41:30 +00:00
Tim Peters 400cbc3a44 Set EOL style to native. 2006-02-28 18:44:41 +00:00
Tim Peters 710ab3b5f8 Whitespace normalization. 2006-02-28 18:30:36 +00:00
Martin v. Löwis 5fec904f84 Start of a source code unparser. 2006-02-27 21:41:03 +00:00