summaryrefslogtreecommitdiff
path: root/Tools/compiler/astgen.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 55270-55324 via svnmerge fromGuido van Rossum2007-05-141-292/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55271 | fred.drake | 2007-05-11 10:14:47 -0700 (Fri, 11 May 2007) | 3 lines remove jpeg, panel libraries for SGI; there is more IRIX stuff left over, I guess that should be removed too, but will leave for someone who is sure ........ r55280 | fred.drake | 2007-05-11 19:11:37 -0700 (Fri, 11 May 2007) | 1 line remove mention of file that has been removed ........ r55301 | brett.cannon | 2007-05-13 17:38:05 -0700 (Sun, 13 May 2007) | 4 lines Remove rexec and Bastion from the stdlib. This also eliminates the need for f_restricted on frames. This in turn negates the need for PyEval_GetRestricted() and PyFrame_IsRestricted(). ........ r55303 | brett.cannon | 2007-05-13 19:22:22 -0700 (Sun, 13 May 2007) | 2 lines Remove the md5 and sha modules. ........ r55305 | george.yoshida | 2007-05-13 19:45:55 -0700 (Sun, 13 May 2007) | 2 lines fix markup ........ r55306 | neal.norwitz | 2007-05-13 19:47:57 -0700 (Sun, 13 May 2007) | 1 line Get the doc building again after some removals. ........ r55307 | neal.norwitz | 2007-05-13 19:50:45 -0700 (Sun, 13 May 2007) | 1 line Get test_pyclbr passing again after getstatus was removed from commands. This "test case" was weird since it was just importing a seemingly random module. Remove the import ........ r55322 | brett.cannon | 2007-05-14 14:09:20 -0700 (Mon, 14 May 2007) | 3 lines Remove the compiler package. Will eventually need a mechanism to byte compile an AST. ........
* Refactor astgen.py with 2to3.Georg Brandl2007-03-181-38/+38
|
* PEP 3107 - Function Annotations thanks to Tony LowndsNeal Norwitz2006-12-281-1/+4
|
* SF patch 1547796 by Georg Brandl -- set literals.Guido van Rossum2006-08-281-1/+1
|
* NodeInfo.__gen_init(): Fiddle so that reindent.py isTim Peters2006-03-091-2/+5
| | | | | | | happy with the output as-is. This incidentally also gets rid of "an extra" blank line at the end of the output block that probably wasn't intended (although it doesn't matter one way or the other).
* Fix compiler.ast.flatten function so that it works on lists.Neil Schemenauer2005-06-021-4/+4
|
* Whitespace normalization.Tim Peters2004-09-121-1/+1
|
* compiler.transformer: correct lineno attribute when possibleJeremy Hylton2004-09-071-39/+30
| | | | | | | | | | | | | | | | SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception.
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-021-7/+22
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-2/+2
|
* Fix calculation of hardest_arg.Jeremy Hylton2001-09-171-3/+3
| | | | | | | | | The argument properties are ordered from easiest to hardest. The harder the arg, the more complicated that code that must be generated to return it from getChildren() and/or getChildNodes(). The old calculation routine was bogus, because it always set hardest_arg to the hardness of the last argument. Now use max() to always set it to the hardness of the hardest argument.
* Revise implementations of getChildren() and getChildNodes().Jeremy Hylton2001-08-291-18/+112
| | | | | | | | | | | | | | | | Add support for floor division (// and //=) The implementation of getChildren() and getChildNodes() is intended to be faster, because it avoids calling flatten() on every return value. But it's not clear that it is a lot faster, because constructing a tuple with just the right values ends up being slow. (Too many attribute lookups probably.) The ast.txt file is much more complicated, with funny characters at the ends of names (*, &, !) to indicate the types of each child node. The astgen script is also much more complex, making me wonder if it's still useful.
* Generate correct reprs for Mul, Add, etc.Jeremy Hylton2001-08-181-0/+2
|
* Fix typo in astgen scriptJeremy Hylton2001-08-141-1/+1
|
* Add getChildNodes() method to NodeJeremy Hylton2001-08-141-0/+2
|
* Support for generation of ast.py from simple description of nodeJeremy Hylton2000-10-251-0/+182
structure (ast.txt). Usage is python astgen.py > ast.py.