History log of /external/python/cpython2/Tools/compiler/astgen.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b1d867f14965e2369d31a3fcdab5bca34b4d81b4 26-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #27076: Doc, comment and test function name spelling fixes

Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
/external/python/cpython2/Tools/compiler/astgen.py
b9d4963a989accce30234b7b74bce874c0142209 05-Jan-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
/external/python/cpython2/Tools/compiler/astgen.py
c5f05e45cffa16f45f1332cec531c045893f928f 23-Feb-2008 Christian Heimes <christian@cheimes.de> Patch #2167 from calvin: Remove unused imports
/external/python/cpython2/Tools/compiler/astgen.py
ca4d08b6d366ef12022c15ea546ecf7a19a087e7 09-Mar-2006 Tim Peters <tim.peters@gmail.com> NodeInfo.__gen_init(): Fiddle so that reindent.py is
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).
/external/python/cpython2/Tools/compiler/astgen.py
f36947032f4e99b2c55fc25fa36a1960c4423cbb 02-Jun-2005 Neil Schemenauer <nascheme@enme.ucalgary.ca> Fix compiler.ast.flatten function so that it works on lists.
/external/python/cpython2/Tools/compiler/astgen.py
0e9980f75a203ee1b2ac28f76a76239446b271d6 12-Sep-2004 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Tools/compiler/astgen.py
566d934745378df72fbbf7d3f834e7d08f7e42d1 07-Sep-2004 Jeremy Hylton <jeremy@alum.mit.edu> compiler.transformer: correct lineno attribute when possible
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.
/external/python/cpython2/Tools/compiler/astgen.py
c2a5a636545a88f349dbe3e452ffb4494b68e534 02-Aug-2004 Anthony Baxter <anthonybaxter@gmail.com> PEP-0318, @decorator-style. In Guido's words:
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728.
/external/python/cpython2/Tools/compiler/astgen.py
182b5aca27d376b08a2904bed42b751496f932f3 18-Jul-2004 Tim Peters <tim.peters@gmail.com> Whitespace normalization, via reindent.py.
/external/python/cpython2/Tools/compiler/astgen.py
eab4328f1a4de03e527c746086f73c8a4d6f6b08 17-Sep-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix calculation of hardest_arg.

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.
/external/python/cpython2/Tools/compiler/astgen.py
5477f529d6f3b25e51ac6b321a6fe7b28fafe1f4 29-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Revise implementations of getChildren() and getChildNodes().
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.
/external/python/cpython2/Tools/compiler/astgen.py
ab427b8ccedacf94acdc0149fc8fb24f8c58c272 18-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Generate correct reprs for Mul, Add, etc.
/external/python/cpython2/Tools/compiler/astgen.py
9272b14d62bb7ebb5883085b44d4a0335f230604 14-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix typo in astgen script
/external/python/cpython2/Tools/compiler/astgen.py
eef65908a10f9fc7f2b69e826d324a4189e4d341 14-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add getChildNodes() method to Node
/external/python/cpython2/Tools/compiler/astgen.py
821eee3321f36562e45aa97e25746ad0b6cad31e 25-Oct-2000 Jeremy Hylton <jeremy@alum.mit.edu> Support for generation of ast.py from simple description of node
structure (ast.txt). Usage is python astgen.py > ast.py.
/external/python/cpython2/Tools/compiler/astgen.py