Commit Graph

25 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 b83a1ff76b Fix typo in test_unparse.py. 2010-06-28 19:34:15 +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
Georg Brandl 3e98736e76 Minor spelling nit. 2005-08-25 20:41:38 +00:00
Fred Drake 9880062ee6 Remove some obsolete files, and update the README. 2000-10-23 20:50:23 +00:00
Fred Drake 6baec620b4 Sort the list of files processed before running the test on each. 2000-08-23 20:21:31 +00:00
Fred Drake 995285e392 Moved all the imports to the top.
Use the methods on the AST object instead of module-level functions;
these have been implemented for a couple of versions now, and are
already used in the module documentation in preference to the
functions.
1999-11-19 21:57:56 +00:00
Guido van Rossum 4117e5428b nannified 1998-09-14 16:44:15 +00:00
Fred Drake b2c02de9cb Removed pprint.py.
Removed pprint.py from the README; it's now in the standard lib.
1997-04-16 04:47:57 +00:00
Fred Drake b5d20393b1 Always use spaces for indentation.
Added pformat() function:  formats object to a string representation with
	no trailing newline; returns the string.
1997-04-15 14:15:23 +00:00
Guido van Rossum f06ee5fa07 /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
Fred Drake 3f3691e12f (Demo/parser/FILES, Demo/parser/Makefile, Demo/parser/parser.tex,
Demo/parser/texipre.dat):
	Clean up support files for stand-alone documentation formatting,
	make sure copyright statement is consistent with the copyright.
1996-09-12 12:59:25 +00:00
Guido van Rossum 8206fb9c4c Final set of changes by Fred before 1.4beta3 1996-08-26 00:33:29 +00:00
Guido van Rossum 16d27e3b14 Demos for Fred's parser module 1996-08-21 16:28:53 +00:00