summaryrefslogtreecommitdiff
path: root/Parser/parser.c
AgeCommit message (Collapse)AuthorLines
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-266/+266
2008-10-26fix __future__ imports when multiple features are givenBenjamin Peterson-3/+0
2008-03-26Patch #2477: Added from __future__ import unicode_literalsChristian Heimes-8/+12
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
2008-03-18Backport of the print function, using a __future__ import.Eric Smith-6/+8
This work is substantially Anthony Baxter's, from issue 1633807. I just freshened it, made a few minor tweaks, and added the test cases. I also created issue 2412, which is to check for 2to3's behavior with the print function. I also added myself to ACKS.
2006-09-24Fix a bug in the parser's future statement handling that led to "with"Georg Brandl-10/+12
not being recognized as a keyword after, e.g., this statement: from __future__ import division, with_statement
2006-04-11Fix the code in Parser/ to also compile with C++. This was mostly casts forAnthony Baxter-1/+1
malloc/realloc type functions, as well as renaming one variable called 'new' in tokensizer.c. Still lots more to be done, going to be checking in one chunk at a time or the patch will be massively huge. Still compiles ok with gcc.
2006-04-10SF patch #1467512, fix double free with triple quoted string in standard build.Neal Norwitz-3/+3
This was the result of inconsistent use of PyMem_* and PyObject_* allocators. By changing to use PyObject_* allocator almost everywhere, this removes the inconsistency.
2006-03-01Patch #1440601: Add col_offset attribute to AST nodes.Martin v. Löwis-7/+7
2006-02-28Make 'as' an actual keyword when with's future statement is used. NotThomas Wouters-10/+12
actually necessary for functionality, but good for transition.
2006-02-28from __future__ import with_statement addon for 'with', mostly written byThomas Wouters-13/+24
Neal.
2002-03-22Disable the parser hacks that allowed the "yield" keyword to be enabledNeil Schemenauer-0/+10
by a future statement.
2001-12-04The parser doesn't need its own implementation of assert, and having itsTim Peters-1/+1
own interfered with including Python.h. Remove Python's assert.h.
2001-07-19Fis SF bug #442647: not all forms of legal future statements wereGuido van Rossum-3/+9
parsed correctly. Now they are.
2001-07-15Preliminary support for "from __future__ import generators" to enableGuido van Rossum-3/+35
the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
2000-10-02Fix a bug in stack overflow error handling. This fixes half of BugGuido van Rossum-1/+1
#115555. The error from s_push() on stack overflow was -1, which was passed through unchanged by push(), but not tested for by push()'s caller -- which only expected positive error codes. Fixed by changing s_push() to return E_NOMEM on stack overflow. (Not quite the proper error code either, but I can't be bothered adding a new E_STACKOVERFLOW error code in all the right places.)
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-07-22Mass ANSIfication.Thomas Wouters-53/+13
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to 'Py_AddPendingCall' by providing a (static) wrapper function that has the right number of arguments.
2000-07-11Create two new exceptions: IndentationError and TabError. These areFred Drake-1/+11
used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
2000-07-09Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters-6/+6
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-20Add new parser error code, E_OVERFLOW. This error is returned whenJeremy Hylton-14/+15
the number of children of a node exceeds the max possible value for the short that is used to count them. The Python runtime converts this parser error into the SyntaxError "expression too long."
1997-04-29Another directory quickly renamed.Guido van Rossum-28/+29
1996-12-30Rename DEBUG macro to Py_DEBUGGuido van Rossum-5/+5
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
1994-12-30Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing;Guido van Rossum-4/+2
rest: abort() -> fatal(); small things
1994-08-30Merge back to main trunkGuido van Rossum-1/+1
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-2/+2
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1992-09-03Correct debug printing codeGuido van Rossum-1/+1
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-16/+18
1990-11-18Free parse tree when deleting parser.Guido van Rossum-2/+3
1990-10-14Initial revisionGuido van Rossum-0/+396