Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | allow None identifiers | Benjamin Peterson | 2011-07-22 | 1 | -1/+1 |
| | |||||
* | verify the types of AST strings and identifiers (closes #12609 and #12610) | Benjamin Peterson | 2011-07-22 | 1 | -2/+19 |
| | |||||
* | hardcode the old svn __version__ | Benjamin Peterson | 2011-07-22 | 1 | -5/+3 |
| | |||||
* | fix code formatting | Benjamin Peterson | 2010-06-09 | 1 | -2/+3 |
| | |||||
* | account for PyObject_IsInstance's new ability to fail | Benjamin Peterson | 2009-12-13 | 1 | -3/+19 |
| | |||||
* | use booleans for flags | Benjamin Peterson | 2009-06-07 | 1 | -10/+10 |
| | |||||
* | fix compiler warning | Benjamin Peterson | 2008-10-19 | 1 | -1/+1 |
| | |||||
* | Fixed #4067 by implementing _attributes and _fields for the AST root node. | Armin Ronacher | 2008-10-19 | 1 | -0/+18 |
| | |||||
* | update asdl_c.py from r66377 | Benjamin Peterson | 2008-09-10 | 1 | -1/+1 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -5/+5 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -5/+5 |
| | |||||
* | Use file.write instead of print to make it easier to merge with 3k. | Neal Norwitz | 2008-03-31 | 1 | -12/+13 |
| | |||||
* | Make AST nodes pickleable. | Georg Brandl | 2008-03-30 | 1 | -2/+27 |
| | |||||
* | Fix error message -- "expects either 0 or 0 arguments" | Georg Brandl | 2008-03-30 | 1 | -2/+4 |
| | |||||
* | Make _fields attr for no fields consistent with _attributes attr. | Georg Brandl | 2008-03-30 | 1 | -8/+3 |
| | |||||
* | #2505: allow easier creation of AST nodes. | Georg Brandl | 2008-03-30 | 1 | -8/+100 |
| | |||||
* | Properly check for consistency with the third argument of | Georg Brandl | 2008-03-29 | 1 | -5/+12 |
| | | | | compile() when compiling an AST node. | ||||
* | Silence compiler warning at the source. | Georg Brandl | 2008-03-28 | 1 | -1/+1 |
| | |||||
* | Patch #1810 by Thomas Lee, reviewed by myself: | Georg Brandl | 2008-03-28 | 1 | -2/+268 |
| | | | | | allow compiling Python AST objects into code objects in compile(). | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -1/+1 |
| | |||||
* | Fix a couple of problems in generating the AST code: | Neal Norwitz | 2007-02-26 | 1 | -5/+3 |
| | | | | | | * use %r instead of backticks since backticks are going away in Py3k * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again * the signature for ast2obj_int incorrectly used a bool, rather than a long | ||||
* | Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c | Brett Cannon | 2007-02-12 | 1 | -2/+19 |
| | | | | | | is specified at the top of the file. Also add a note that Python/Python-ast.c needs to be committed separately after a change to the AST grammar to capture the revision number of the change (which is what __version__ is set to). | ||||
* | Prefix AST symbols with _Py_. Fixes #1637022. | Martin v. Löwis | 2007-01-19 | 1 | -1/+6 |
| | | | | Will backport. | ||||
* | Patch #1355883: Build Python-ast.c and Python-ast.h | Martin v. Löwis | 2006-04-14 | 1 | -30/+30 |
| | | | | independently. Fixes #1355883. | ||||
* | Introduce asdl_int_seq, to hold cmpop_ty. | Martin v. Löwis | 2006-04-13 | 1 | -3/+9 |
| | |||||
* | Make _kind types global for C++ compilation. | Martin v. Löwis | 2006-04-11 | 1 | -3/+5 |
| | | | | Explicitly cast void* to int to cmpop_ty. | ||||
* | Make path calculation platform independent | Jeremy Hylton | 2006-04-04 | 1 | -1/+1 |
| | |||||
* | Add lineno, col_offset to excephandler to enable future fix for | Jeremy Hylton | 2006-04-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | tracing/line number table in except blocks. Reflow long lines introduced by col_offset changes. Update test_ast to handle new fields in excepthandler. As note in Python.asdl says, we might want to rethink how attributes are handled. Perhaps they should be the same as other fields, with the primary difference being how they are defined for all types within a sum. Also fix asdl_c so that constructors with int fields don't fail when passed a zero value. | ||||
* | * Fix a refleak of *_attributes. | Neal Norwitz | 2006-04-03 | 1 | -5/+7 |
| | | | | | | * Cleanup formatting a bit (add spaces). * Move static var initialized inside init_types() since that's the only place it's used. | ||||
* | Fix memory leak on attributes. | Martin v. Löwis | 2006-03-02 | 1 | -1/+3 |
| | |||||
* | Don't pollute namespace as bad as before. All the types are static now. | Neal Norwitz | 2006-02-28 | 1 | -7/+7 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-02-28 | 1 | -13/+13 |
| | |||||
* | Generate return statement. | Martin v. Löwis | 2006-02-28 | 1 | -0/+1 |
| | |||||
* | Add generation of the version. | Martin v. Löwis | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | Add support for version field on Modules | Martin v. Löwis | 2006-02-28 | 1 | -0/+1 |
| | |||||
* | Create _ast module. | Martin v. Löwis | 2006-02-27 | 1 | -191/+86 |
| | | | | Cleanup Python-ast.c generation. | ||||
* | Avoid reinitializing the types twice. | Martin v. Löwis | 2006-02-27 | 1 | -0/+1 |
| | |||||
* | Stop generating empty arrays. | Martin v. Löwis | 2006-02-26 | 1 | -12/+22 |
| | |||||
* | Fix iterating over cmpop_ty lists. | Martin v. Löwis | 2006-02-26 | 1 | -5/+13 |
| | |||||
* | Generate code to recursively copy an AST into | Martin v. Löwis | 2006-02-26 | 1 | -59/+206 |
| | | | | a tree of Python objects. Expose this through compile(). | ||||
* | Whitespace normalization. | Tim Peters | 2005-12-25 | 1 | -50/+50 |
| | |||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 1 | -5/+10 |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | ||||
* | When regenerating files like Python-ast.h, take care that the generated | Armin Rigo | 2005-12-14 | 1 | -3/+2 |
| | | | | | | | comment based on 'sys.args[0]' does not depend on the path. For Python builds from a remote directory ("/path/to/configure; make") the previous logic used to include the "/path/to" portion in Python-ast.h. Then svn would consider this file to be locally modified. | ||||
* | SF #1373150, diffs in working copy after a build | Neal Norwitz | 2005-12-11 | 1 | -1/+5 |
| | | | | | | | | Strip off leading dots and slash so the generated files are the same regardless of whether you configure in the checkout directory or build. If anyone configures in a different directory, we might want a cleaner approach using os.path.*(). Hopefully this is good enough. | ||||
* | Whoops, checkin consistent versions of *all* files to stop polluting | Neal Norwitz | 2005-11-13 | 1 | -6/+80 |
| | | | | a bunch of names | ||||
* | Prevent name pollution by making lots of internal functions static. | Neal Norwitz | 2005-11-13 | 1 | -4/+4 |
| | |||||
* | Use PyErr_NoMemory() instead of rolling our own. | Neal Norwitz | 2005-10-23 | 1 | -7/+5 |
| | | | | Get rid of "int i" unused warnings from Python-ast.c which we are generating. | ||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -0/+621 |
This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests. |